lint: Ban lines longer than 140 characters without #ignorelongline.

This commit is contained in:
Tim Abbott 2016-08-19 12:03:09 -07:00
parent 7b80e9bcc4
commit b46aa33656

View file

@ -92,7 +92,7 @@ def different_paragraph(line, next_line):
len(line) < len(words[0])) len(line) < len(words[0]))
# Linewrapping algorithm based on: # Linewrapping algorithm based on:
# http://gcbenison.wordpress.com/2011/07/03/a-program-to-intelligently-remove-carriage-returns-so-you-can-paste-text-without-having-it-look-awful/ # http://gcbenison.wordpress.com/2011/07/03/a-program-to-intelligently-remove-carriage-returns-so-you-can-paste-text-without-having-it-look-awful/ #ignorelongline
def unwrap_lines(body): def unwrap_lines(body):
lines = body.split("\n") lines = body.split("\n")
result = "" result = ""