Page MenuHomePhabricator

parsing treats {{t|a}} differently from {{t|1=a}} with \n in output.
Closed, DeclinedPublic

Description

Author: darklama

Description:
For some reason when someone uses multiple lines for a template like:

{{t

a

}}

it includes a new line character in the output which leads to unexpected behavior. If however you use:

{{t

1=a

}}

a new line character is not included in the output which is the expected behavior.

This problem exists in both the new and old parser from a what a quick Special:ParserDiffTest test shows.

"| a" should be treated the same as "| 1=a" by not including a new line character.


Version: 1.13.x
Severity: enhancement
URL: http://en.wikibooks.org/wiki/Image:Mosflower.png

Details

Reference
bz13936

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:10 PM
bzimport set Reference to bz13936.
bzimport added a subscriber: Unknown Object (MLST).

This is ancient accidental behaviour, reproduced at great expense in the new preprocessor for the sake of backwards compatibility. We had many complaints of broken articles in the brief period when the new preprocessor did not do this. So this is how it will stay.