Lines Matching refs:line
30 string that will be prepended to the first line of wrapped
31 output. Counts towards the line's width.
34 of wrapped output; also counts towards each line's width.
38 in its line. If false, each tab is treated as a single character.
63 Append to the last line of truncated text.
203 is too long to fit in any line.
213 # of the next chunk onto the current line as will fit.
227 # it to the current line if there's nothing already there --
233 # text on the current line, do nothing. Next time through the
235 # cur_len will be zero, so the next line will be entirely
245 indivisible (modulo 'break_long_words'), but a line break can
268 # Start the list of chunks that will make up the current line.
273 # Figure out which static string will prefix this line.
279 # Maximum width for this line.
282 # First chunk on line is whitespace -- drop it, unless this
290 # Can at least squeeze this chunk onto the current line.
295 # Nope, this line is full.
299 # The current line is full, and the next chunk is too big to
300 # fit on *any* line (not just this one).
305 # If the last chunk on this line is all whitespace, drop it.
317 # Convert current line back to a string and store it in
420 """Remove any common leading whitespace from every line in `text`.
422 This can be used to make triple-quoted strings line up with the left
441 # Current line more deeply indented than previous winner:
446 # Current line consistent with and no deeper than previous winner:
451 # Find the largest common whitespace between current line and previous
461 for line in text.split("\n"):
462 assert not line or line.startswith(margin), \
463 "line = %r, margin = %r" % (line, margin)
474 where 'predicate(line)' is True. If 'predicate' is not provided,
479 def predicate(line):
480 return line.strip()
483 for line in text.splitlines(True):
484 yield (prefix + line if predicate(line) else line)