git-svn-id: https://samskivert.googlecode.com/svn/trunk@1574 6335cc39-0255-0410-8fd6-9bcaacd3b74c

This commit is contained in:
mdb
2005-01-14 18:03:30 +00:00
parent e2b90d6f7b
commit 7429fcf836
@@ -53,6 +53,9 @@ public class HTMLUtil
if (text == null) {
return text;
}
return StringUtil.replace(text, "\n\n", "\n<p>\n");
// handle both line ending formats
text = StringUtil.replace(text, "\n\n", "\n<p>\n");
text = StringUtil.replace(text, "\r\n\r\n", "\r\n<p>\r\n");
return text;
}
}