madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[miscperl] r275: LJSUP-13883: Journal pages optimizaiton ...

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/HTMLCleaner.pm
Modified: trunk/HTMLCleaner.pm
===================================================================
--- trunk/HTMLCleaner.pm	2012-10-17 08:30:12 UTC (rev 274)
+++ trunk/HTMLCleaner.pm	2012-10-17 09:20:01 UTC (rev 275)
@@ -178,7 +178,9 @@
         return;
     }
 
-    return unless $text =~ /(<|>)/;
+    unless ($text =~ /(<|>)/) {
+        $self->{'output'}->($text);
+    }
 
     # this string is magic [hack].  (See $out_straight in
     # cgi-bin/LJ/S2.pm) callers can print "<!-- -->" to HTML::Parser

Tags: madeon, miscperl, pm, sbelyaev
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