Page MenuHomePhabricator

HTMLtidy moves whitespace around
Closed, DuplicatePublic

Description

HTML tidy moves whitespace around, including in some cases where this is not desirable, for instance:

en:Template:Coord/link

"<span class="geo-multi-punct"> / </span>" is changed to " <span class="geo-multi-punct">/</span> ". This is not desirable because this span is "display:none" for most people, but HTMLtidy makes the spaces show up in elements that are visible by default. The only way to fix this atm seems to be to use "<span class="geo-multi-punct">&#xfeff; / &#xfeff;</span>", which is terrible of course. It would be nice if this part of HTMLtidy could be disabled, since it is supposed to be non-visual cosmetic cleanup done by HTMLtidy, but turns out to be visual in en.wp in some conditions.


Version: unspecified
Severity: normal

Details

Reference
bz18851