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

       Web browser: ---
             Bug #: 41725
           Summary: First character in <pre> stripped and replaced with
                    mw:Placeholder
           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],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


The following wikitext:

<pre>Foo
Bar
</pre>

yields the following HTML:

<pre><span typeof="mw:Placeholder">
</span>oo
Bar
</pre>

HTML with data-parsoid attributes included:
<pre
data-parsoid="{&quot;stx&quot;:&quot;html&quot;,&quot;tsr&quot;:[0,5],&quot;bsp&quot;:[0,19],&quot;dsr&quot;:[0,19]}"><span
typeof="mw:Placeholder"
data-parsoid="{&quot;src&quot;:&quot;\n&quot;,&quot;dsr&quot;:[5,6]}">
</span>oo
Bar
</pre>

It seems the first character is unconditionally being stripped and replaced
with a newline placeholder, even if the first character isn't actually a
newline.

I generally don't like the newline placeholder inside <pre>s, and I'd like to
get rid of it if possible.

-- 
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