Lines Matching refs:linewidth
28 def count_lines_with_wrapping(s, linewidth=80):
32 linewidth characters long.
51 if current_column > linewidth:
52 # If the current column was exactly linewidth, divmod
55 # multiple of linewidth. Therefore, subtract 1 before
57 linecount += (current_column - 1) // linewidth
66 if current_column > linewidth:
74 # Avoid divmod(-1, linewidth).
76 linecount += (current_column - 1) // linewidth
284 over linewidth characters long.