Home | History | Annotate | Download | only in python2.7

Lines Matching refs:lines

50         the maximum width of wrapped lines (unless break_long_words
56 string that will be prepended to all lines save the first
73 be broken, and some lines might be longer than 'width'.
79 Drop leading and trailing whitespace from lines.
246 Wrap a sequence of text chunks and return a list of lines of
248 some lines may be longer than this.) Chunks correspond roughly
254 lines, but apart from that whitespace is preserved.
256 lines = []
272 if lines:
281 # is the very beginning of the text (ie. no lines started yet).
282 if self.drop_whitespace and chunks[-1].strip() == '' and lines:
307 # of all lines (return value).
309 lines.append(indent + ''.join(cur_line))
311 return lines
319 Reformat the single paragraph in 'text' so it fits in lines of
321 lines. Tabs in 'text' are expanded with string.expandtabs(),
334 Reformat the single paragraph in 'text' to fit in lines of no
344 """Wrap a single paragraph of text, returning a list of wrapped lines.
346 Reformat the single paragraph in 'text' so it fits in lines of no
347 more than 'width' columns, and return a list of wrapped lines. By
359 Reformat the single paragraph in 'text' to fit in lines of no more
382 are not equal: the lines " hello" and "\thello" are
388 # all lines.