madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20472: LJSUP-10170: Correct css in RTE (self-cl...

Committer: sbelyaev
LJSUP-10170: Correct css in RTE (self-closed tag is supported now)
U   trunk/cgi-bin/LJ/EmbedModule.pm
Modified: trunk/cgi-bin/LJ/EmbedModule.pm
===================================================================
--- trunk/cgi-bin/LJ/EmbedModule.pm	2011-11-02 12:26:02 UTC (rev 20471)
+++ trunk/cgi-bin/LJ/EmbedModule.pm	2011-11-02 13:56:21 UTC (rev 20472)
@@ -261,9 +261,12 @@
                     $newstate = IMPLICIT;
                     # tag balance
                     push @stack, $tag;
+                    $embed .= $reconstructed;
+                } else {
+                    $newstate = REGULAR;
+                    $newtxt .= $reconstructed;
                 }
                 # append the tag contents to new embed buffer, so we can convert in to lj-embed later
-                $embed .= $reconstructed;
             } else {
                 # otherwise stay in REGULAR
                 $newtxt .= $reconstructed;

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