1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #36485 -- Corrected docs linter to detect too-long lines at file end.

This commit is contained in:
Jacob Walls
2025-08-29 17:35:50 -04:00
committed by GitHub
parent bb7a7701b1
commit a627194567
3 changed files with 5 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ def check_line_too_long_django(file, lines, options=None):
continue
except IndexError:
# End of file
continue
pass
if len(set(line.strip())) == 1 and len(line) == len(lines[lno - 1]):
continue # Ignore heading underline
if lno in table_rows: