Tags: blank_lines, whitespace
Aliases: no-multiple-blanks
Parameters:
maximum: Maximum number of consecutive blank lines (integer, default1)
Fixable: Some violations can be fixed by tooling
This rule is triggered when you have multiple consecutive blank lines in a document:
Some text here
Some more text hereTo fix this, ensure that only one blank line is used:
Some text here
Some more text hereThe maximum parameter can be used to configure the number of consecutive blank lines allowed in a document.
Note: this rule does not trigger on multiple consecutive blank lines inside code blocks.
Except in a code block, blank lines serve no purpose and do not affect the rendering of content.