Added kitchen functions for chopping unicode text.

This commit is contained in:
Michael Lazar
2015-05-02 17:23:22 -07:00
parent f0ec9ba712
commit d548e65166
3 changed files with 8 additions and 14 deletions

View File

@@ -79,6 +79,7 @@ def clean(string):
string = string.encode('ascii', 'replace')
return string
def wrap_text(text, width):
"""
Wrap text paragraphs to the given character width while preserving newlines.