diff options
-rw-r--r-- | .github/vyos-linter.py | 1 | ||||
-rw-r--r-- | docs/documentation.rst | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/vyos-linter.py b/.github/vyos-linter.py index 4a8108b8..bb58786d 100644 --- a/.github/vyos-linter.py +++ b/.github/vyos-linter.py @@ -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') diff --git a/docs/documentation.rst b/docs/documentation.rst index 3a2bfdcb..64531c32 100644 --- a/docs/documentation.rst +++ b/docs/documentation.rst @@ -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. |