Page MenuHomePhabricator

New linter: disallow blank line in the end of a section
Closed, DeclinedPublic

Description

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 ==
ffff


== h2 ==

ggg

Event Timeline

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.

Arlolra subscribed.

Based on what @Jonesey95 is saying, but thank you for the suggestion.