Page MenuHomePhabricator

Remove any break lines before page content
Closed, ResolvedPublic

Description

It happens frequently to have a page beginning by one or more break lines.
It's linked to templates, which should be corrected.
But just avoiding to render them would improve the page layout.

Looking for "<p><br /></p>" just after <!-- start content --> should do the trick.
By example for this page:
http://fr.wikipedia.org/w/index.php?title=DisplayPort&oldid=60280474


Version: unspecified
Severity: enhancement

Details

Reference
bz26645

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:17 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz26645.
bzimport added a subscriber: Unknown Object (MLST).

The DISPLAYTITLE in [[fr:Modèle:Langue du titre]] leaves the newline before [[:fr:Modèle:Infobox Connectique]] and that produce a br.

See also bug 23698

  • This bug has been marked as a duplicate of bug 23698 ***

More like bug 4161 in the spirit, though the example is bug 23698.

*** This bug has been marked as a duplicate of bug 4161 ***