When using Python\'s textwrap library, how can I turn this:
short line, long line xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
lines = text.split("\n") lists = (textwrap.TextWrapper(width=90,break_long_words=False).wrap(line) for line in lines) body = "\n".join("\n".join(list) for list in lists)