git-svn-id: https://samskivert.googlecode.com/svn/trunk@1574 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -53,6 +53,9 @@ public class HTMLUtil
|
|||||||
if (text == null) {
|
if (text == null) {
|
||||||
return text;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user