Page MenuHomePhabricator

Unnecessary newline added to lists and tables when invoked through a template
Closed, DuplicatePublic

Description

Screenshot showing both cases in Special:ExpandTemplates

Bug 529 added the "feature" of adding a newline to templates when they are not at the start of the line if they start with wikitext which has to be at the start of the line (tables, lists, etc.). When using a plain template or invoking a module directly, this works fine. However, when using a template which invokes a module, the newline is ALWAYS added, regardless of if it is necessary.
This often results in nasty <p>s coming along and ruining everything, like they always do. :(

This is easy to test: create a module and a template which starts with a list or table. When using the module through a template you'll always get an extra newline, unlike direct invocation or plain templates, which only add it when necessary.


Version: master
Severity: normal

Attached:

Details

Reference
bz60827

Event Timeline

bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz60827.
bzimport added a subscriber: Unknown Object (MLST).
Majr created this task.Feb 4 2014, 2:14 PM
Anomie added a comment.Feb 4 2014, 2:35 PM

This also occurs if you create Template:list2 with contents "{{list}}".

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