juks (juks) wrote in changelog,
juks
juks
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;
     }
     

Tags: juks, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments