Page MenuHomePhabricator

Parsoid adds unnecessary <nowiki> tags to bolded strings that end in apostrophes in some cases
Closed, DeclinedPublic

Description

Parsoid adds unnecessary <nowiki> tags to bolded strings that end in apostrophes in some cases.

This is basically the same as T84921, which was closed in January 2015, but I have an example from this week: https://he.wikipedia.org/w/index.php?title=%D7%A8%D7%97%D7%95%D7%91_%D7%94%D7%A9%D7%95%D7%9E%D7%A8&diff=prev&oldid=18527979

The second paragraph from the previous version is largely unchanged, but a <nowiki> tag was added.

Event Timeline

ssastry subscribed.

Parsoid's algorithm to add / minimize nowikis on lines with apostrophes is heuristic-based and doesn't guarantee an optimal scenario wrt nowiki placement for i/b contexts. We are happy to tweak the heuristics if there are lots of unnecessary nowikis around b/i tags, but if there are one-off scenarios like this one, I am inclined to let it be.

Please reopen if there are too many of these -- we can then extract test cases to base tweaks on.