Browse Source

- fixed list eostring problem

Laurent Bedubourg 18 years ago
parent
commit
dc501019e4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      std/mtwin/text/Text2Xhtml.hx

+ 3 - 0
std/mtwin/text/Text2Xhtml.hx

@@ -150,6 +150,9 @@ class Text2Xhtml {
 		str = StringTools.replace(str, "\r\n", "\n");
 		str = StringTools.replace(str, "\r", "\n");
 		str = StringTools.htmlEscape(str);
+		while (!StringTools.endsWith(str, "\n\n")){
+			str += "\n";
+		}			
 
 		var helper = new StringHelper(str);
 		var extractedPre = helper.extract("pre", pre, "<pre>$1</pre>");