juks wrote in changelog

[livejournal] r18009: LJSUP-7307 Rules of post parsing

Committer: iaskarov
LJSUP-7307 Rules of post parsing
U   trunk/cgi-bin/LJ/Text.pm
Modified: trunk/cgi-bin/LJ/Text.pm
===================================================================
--- trunk/cgi-bin/LJ/Text.pm	2011-01-11 10:40:17 UTC (rev 18008)
+++ trunk/cgi-bin/LJ/Text.pm	2011-01-12 04:04:13 UTC (rev 18009)
@@ -294,7 +294,7 @@
 
         $str .= $ellipsis;
     } elsif($force_ellipsis) {
-        $str .= ' ' if($str !~ /\s$/);
+        $str .= ' ' if($str =~ /\S$/);
         $str .= $ellipsis;
     }