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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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:

View File

@ -5,4 +5,5 @@ Django 1.8.11 release notes
*March 5, 2016*
Django 1.8.11 fixes a regression on Python 2 in the 1.8.10 security release
where ``utils.http.is_safe_url()`` crashes on bytestring URLs (:ticket:`26308`).
where ``utils.http.is_safe_url()`` crashes on bytestring URLs
(:ticket:`26308`).

View File

@ -5,4 +5,5 @@ Django 1.9.4 release notes
*March 5, 2016*
Django 1.9.4 fixes a regression on Python 2 in the 1.9.3 security release
where ``utils.http.is_safe_url()`` crashes on bytestring URLs (:ticket:`26308`).
where ``utils.http.is_safe_url()`` crashes on bytestring URLs
(:ticket:`26308`).