Page MenuHomePhabricator

Impossible to use #section-h at end of section without causing duplicate spacing
Closed, ResolvedPublic

Description

The #section-h parser function will transclude all content between the header you specify and the next header of the same level. This includes the space that is automatically added between section headers. If a section in another article in ends with a section transclusion from the first header, it will transclude the space, and the automatically-generated space at the end of that section will thus produce unintended whitespace. This was dicussed on my user talk page.

Event Timeline

Change 326365 had a related patch set uploaded (by Pppery):
Make #lsth ignore blank line at end of section

https://gerrit.wikimedia.org/r/326365

Change 326365 abandoned by Pppery:
Make #lsth ignore blank line at end of section

https://gerrit.wikimedia.org/r/326365

Change 326365 restored by Pppery:

[mediawiki/extensions/LabeledSectionTransclusion@master] Make #lsth ignore blank line at end of section

https://gerrit.wikimedia.org/r/326365

Change 326365 abandoned by Pppery:

[mediawiki/extensions/LabeledSectionTransclusion@master] Make #lsth ignore blank line at end of section

Reason:

https://gerrit.wikimedia.org/r/326365

Change 326365 restored by Pppery:

[mediawiki/extensions/LabeledSectionTransclusion@master] Make #lsth ignore blank line at end of section

https://gerrit.wikimedia.org/r/326365

Change 326365 merged by jenkins-bot:

[mediawiki/extensions/LabeledSectionTransclusion@master] Trim output of lsth parser call

https://gerrit.wikimedia.org/r/326365

Pppery removed a project: Patch-For-Review.