Explorar o código

- added non breaking spaces before ? ! and :

Laurent Bedubourg %!s(int64=18) %!d(string=hai) anos
pai
achega
3e3f6a8499
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      std/mtwin/text/Text2Xhtml.hx

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

@@ -287,6 +287,10 @@ s.write('swf@id');
 		var https = helper.extract("http", http, "<a href=\"$1://$2\">$1://$2</a>$3");
 		str = helper.str;
 
+		str = StringTools.replace(str, " !", "&nbsp;!");
+		str = StringTools.replace(str, " :", "&nbsp;:");
+		str = StringTools.replace(str, " ?", "&nbsp;?");
+
 		var pos = 0;
 		var token = findFirst(str, [em, strong, cite]);
 		while (token != null){