Package Info

python-textwrap3


Textwrap from Python 3.6 backport (plus a few tweaks)


Development/Languages/Python

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 '--'.


License: Python-2.0
URL: https://github.com/jonathaneunice/textwrap3

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.9.2-bp155.2.12 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-textwrap3
0.9.2-bp154.1.26 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-textwrap3
0.9.2-bp153.1.17 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-textwrap3
  • python3-textwrap3
0.9.2-bp152.1.11 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-textwrap3
  • python3-textwrap3