Page MenuHomePhabricator

Default whitespace for block templates should be to have a \n beforehand
Closed, ResolvedPublic

Description

In this revision (normal output, not VE), the navbox looks bugged because it is sitting on the same line as a list item:

http://en.wikipedia.org/w/index.php?title=History_of_Delta_Air_Lines&oldid=561463069#External_links

But VE shows the navbox as if it was on its own line.

This display fault caused a user to save the revision in question, thinking it was formatted properly. VE should probably be leaving block templates on their own line. (Is that another bug?)


Version: unspecified
Severity: normal

Details

Reference
bz50166

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:02 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz50166.

Retitled this to a Parsoid bug, "Default whitespace for block templates should be to have a \n beforehand" which would solve the issue - but I'm not sure how easy that is for Parsoid to implement?

Is there TemplateData info on what is a block template, and would it be fine to enforce that?

(In reply to comment #2)

Is there TemplateData info on what is a block template, and would it be fine
to enforce that?

We could add it, but some templates are block or inline depending on parameters, so…

  • Bug 67268 has been marked as a duplicate of this bug. ***

Bug 50166 contains a nice example of where this is really important (templates that generate table markup like |- etc).

Arlolra set Security to None.
ssastry claimed this task.

This 2013 era bug is not longer relevant. We now have TemplateData that specifies format and Parsoid takes care of formatting according to that spec.