Page MenuHomePhabricator

New linter: disallow blank line in the end of a section
Open, Needs TriagePublic


In the code snippet below there will be an blank line rendered at the end of the section, I suppose in almost every case it is a mistake.

== h1 ==

== h2 ==


Event Timeline

Golopotw created this task.Aug 22 2019, 4:34 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 22 2019, 4:34 PM
Golopotw updated the task description. (Show Details)Aug 22 2019, 4:35 PM

How is that incorrect or problematic markup?

How is that incorrect or problematic markup?

The rendered blank line looks bad visually.

Feel free to close this if it is out of scope for this project.

This seems like something that should be addressed via WPCleaner or bot runs. It is not invalid markup, so it should not be tagged as part of the Linter project.