Laurent Bedubourg 19 anni fa
parent
commit
acfe76e9f2
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      std/mtwin/text/Text2Xhtml.hx

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

@@ -133,6 +133,8 @@ class Text2Xhtml {
 	}
 
 	public function transform( str:String ) : String {
+		str = StringTools.replace(str, "\r\n", "\n");
+		str = StringTools.replace(str, "\r", "\n");
 		str = StringTools.htmlEscape(str);
 
 		var helper = new StringHelper(str);