code: public static String makeParagraphs (String text)
      {
          if (text == null) {
              return text;
          }
          // handle both line ending formats
          text = text.replace("\n\n", "\n<p>\n");
          text = text.replace("\r\n\r\n", "\r\n<p>\r\n");
          return text;
      }
docs: Inserts a {@code <p>} tag between every two consecutive newlines.