Revision 3255
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/strings.py | ||
---|---|---|
93 | 93 |
|
94 | 94 |
def std_newl(str_): return str_.replace('\r\n', '\n').replace('\r', '\n') |
95 | 95 |
|
96 |
def join_lines(lines): return ''.join((l+'\n' for l in lines)) |
|
97 |
|
|
96 | 98 |
##### Whitespace |
97 | 99 |
|
98 | 100 |
def cleanup(str_): return std_newl(str_.strip()) |
Also available in: Unified diff
strings.py: Added join_lines()