Added kitchen functions for chopping unicode text.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user