python3-textwrap3
Textwrap from Python 3.6 backport (plus a few tweaks)
Textwrap3 is a compatibility back-port of Python 3.6's textwrap module that supports Python 2.6 forward. This makes a few new APIs such as shorten and the max_lines parameter available in a compatible way to all Python versions typically in current use. By design, Python 3 sensibilities and expectations rule. Especially when processing text that includes Unicode characters, textwrap3's results may differ a bit from those of the textwrap of the underlying Python version (esp. 2.x). In particular, textwrap3 uses the re.UNICODE flag so that non-ASCII characters such as accented letters are considered legitimate word characters. It also adds one tweak, considering the Unicode em-dash ('\N{EM DASH}' or u'\u2014') identical to the simulated ASCII em-dash '--'.
Python-2.0