linter: fix line lenght detection, strip linebreak

This commit is contained in:
rebortg 2020-12-11 11:58:51 +01:00
parent 23fa394cb2
commit e3e08b3af1
2 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ def lint_AS(cnt, line):
def lint_linelen(cnt, line):
line = line.rstrip()
if len(line) > 80:
return (f"Line too long: len={len(line)}", cnt, 'warning')

View File

@ -157,7 +157,7 @@ Please don't use other public address space.
Line length
^^^^^^^^^^^
Limit all lines to a maximum of 79 characters.
Limit all lines to a maximum of 80 characters.
Except in ``.. code-block::`` because it will use the html tag ``<pre>``
which have the save line format as in the rst file.