https://bugzilla.wikimedia.org/show_bug.cgi?id=42667

       Web browser: ---
             Bug #: 42667
           Summary: Presence/absence of initial newline in <pre> should be
                    in round-trip data
           Product: Parsoid
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


There is a syntactic (but not a semantic) difference between <pre>Foo</pre> and
<pre>\nFoo</pre>. VE will normalize the latter to the former (due to the
browsers' HTML DOM implementation), so Parsoid should use round-trip data to
serialize this correctly.

Test wikitext:

<pre>Foo</pre>

<pre>
Foo</pre>


/_rtform/ claims this round-trips cleanly, but it's lying. If you put the
wikitext into /_wikitext/, grab the HTML, then copypaste that into /_html/ ,
you'll see the initial newline in the second <pre> is eaten.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to