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

--- Comment #3 from ssas...@wikimedia.org ---
(In reply to C. Scott Ananian from comment #0)
> We have multiple html2wt regressions in the "Italics and bold: multiple
> quote sequences" tests, which were hidden because these tests were on the
> blacklist (the <nowiki> insertion previously made the html2wt tests fail).
> 
> The failing tests, along with their wt2wt output (as "After") are:
> 
> Italics and bold: multiple quote sequences: (3,4,2)
> Before: '''foo''''bar''
>         <b>foo'</b>bar<i></i>
> After:  '''<nowiki>foo'</nowiki>'''bar''''
>         <b>foo'</b>bar'<b></b>
> 
> Italics and bold: multiple quote sequences: (3,4,3)
> Before: '''foo''''bar'''
>         <b>foo'</b>bar<b></b>
> After:  '''<nowiki>foo'</nowiki>'''bar''''''
>         '<i>foo<b>bar'</b></i>

This is messy because of the context-sensitive nature of how quotes get parsed.
Adding additional quotes for auto-closed italic tags changes the tokenization
and hence parse. While we do have the auto-insertion flags in the HTML, we
cannot use this unconditionally since edits could have changed the node.

However, for empty nodes that have auto-inserted flags, we can check DSR widths
to determine whether it is safe to use information from the flags. Will
experiment.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to