Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17669: LJSUP-6920: Resolve 'broken nested tag s...

Committer: gariev
LJSUP-6920: Resolve 'broken nested tag sequence' error

U   trunk/cgi-bin/ljtextutil.pl
Modified: trunk/cgi-bin/ljtextutil.pl
===================================================================
--- trunk/cgi-bin/ljtextutil.pl	2010-11-11 09:54:08 UTC (rev 17668)
+++ trunk/cgi-bin/ljtextutil.pl	2010-11-11 10:33:52 UTC (rev 17669)
@@ -541,7 +541,7 @@
             $ret = "<$tag$added_attrs>";
             push @tags2autoclose, $tag if exists $_html_trim_4gadgets_autoclose{lc $tag};
         } else {
-            warn "broken nested tags sequence\n" if $tag ne pop @tags2autoclose;
+            pop @tags2autoclose;
             $ret = "</$tag>";
         }
 
@@ -588,7 +588,7 @@
                 return "<$tag href=\"".$attr->{'href'}."\" target=\"_blank\">";
             }
             if ('E' eq $type) {
-                warn "broken nested tags sequence\n" if $tag ne pop @tags2autoclose;
+                pop @tags2autoclose;
                 return "</$tag>";
             }
             return '';
@@ -612,7 +612,7 @@
                 return "<$tag cellpadding=\"5\" cellspacing=\"5\" border=\"0\">"
             }
             if ('E' eq $type) {
-                warn "broken nested tags sequence\n" if $tag ne pop @tags2autoclose;
+                pop @tags2autoclose;
                 $text_before_table = '' unless grep { /table/i } @tags2autoclose;
                 return "</$tag>";
             }

Tags: gariev, livejournal, pl
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