Lines Matching full:whitespace
30 # Hardcode the recognized whitespace characters to the US-ASCII
31 # whitespace characters. The main reason for doing this is that in
32 # ISO-8859-1, 0xa0 is non-breaking whitespace, so in certain locales
33 # that character winds up in string.whitespace. Respecting
34 # string.whitespace in those cases would 1) make textwrap treat 0xa0 the
35 # same as any other whitespace char, which is clearly wrong (it's a
63 Replace all whitespace characters in the input text by spaces
79 Drop leading and trailing whitespace from lines.
96 r'(\s+|' # any whitespace
149 Munge whitespace in text: expand tabs and convert all other
150 whitespace characters to spaces. Eg. " foo\tbar\n\nbaz"
215 Handle a chunk of text (most likely a word, not whitespace) that
249 to words and the whitespace between them: each chunk is
252 whitespace; ie. a chunk is either all whitespace or a "word".
253 Whitespace chunks will be removed from the beginning and end of
254 lines, but apart from that whitespace is preserved.
280 # First chunk on line is whitespace -- drop it, unless this
302 # If the last chunk on this line is all whitespace, drop it.
322 and all other whitespace characters (including newline) are
349 all other whitespace characters (including newline) are converted to
362 whitespace characters converted to space. See TextWrapper class for
375 """Remove any common leading whitespace from every line in `text`.
381 Note that tabs and spaces are both treated as whitespace, but they
383 considered to have no common leading whitespace. (This behaviour is
385 expanded tabs before searching for common leading whitespace.)
406 # Current line and previous winner have no common whitespace: