Page MenuHomePhabricator

Tidy HTML wrapping causes bad output
Closed, ResolvedPublic

Description

The "wrap" option configured for Tidy on Wikipedia is broken. If the "show hoverbox above links" setting is disabled, Tidy sometimes inserts the line break into the editsection link, causing it to display like "[ edit]". (See e.g. http://mormegil.wz.cz/etc/editsec_ff.png)

The "tidied" HTML looks like:

<div class="editsection" style="float:right;margin-left:5px;">
[<a href="
/w/index.php?title=Josephus_problem&amp;action=edit&amp;section=2">
edit</a>]</div>

Notice the superfluous end of line after the opening anchor tag, just before the "edit" text.

This might be fixed by some Tidy option like "wrap-attributes", I don't know, I have never used Tidy.


Version: unspecified
Severity: normal

Details

Reference
bz2123

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:31 PM
bzimport set Reference to bz2123.
bzimport added a subscriber: Unknown Object (MLST).

"Fixed" by removing the hover option altogether
(see http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=7863), and
probably also by disabling the line-wrapping feature of Tidy

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:25 AM