mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
accept 95 chars including CRLF. It is same as flake8 check.
This commit is contained in:
@@ -57,7 +57,7 @@ if sys.version_info < (3, 0):
|
||||
def check_style_and_encoding(fn, lines):
|
||||
encoding = 'ascii'
|
||||
for lno, line in enumerate(lines):
|
||||
if len(line) > 95:
|
||||
if len(line.rstrip('\n')) > 95:
|
||||
yield lno+1, "line too long"
|
||||
if lno < 2:
|
||||
co = coding_re.search(line)
|
||||
|
||||
Reference in New Issue
Block a user