[New-bugs-announce] [issue20491] textwrap: Non-breaking space not honored

Kaarle Ritvanen report at bugs.python.org
Sun Feb 2 21:46:37 CET 2014


New submission from Kaarle Ritvanen:

The textwrap module does not distinguish non-breaking space (\xa0) from other whitespace when determining word boundaries.

In the beginning of the module, the _whitespace variable is defined to address this issue but is not used in the regular expressions determining the splitting rules.

----------
components: Library (Lib)
files: textwrap-honor-non-breaking-spaces.patch
keywords: patch
messages: 210013
nosy: kunkku
priority: normal
severity: normal
status: open
title: textwrap: Non-breaking space not honored
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file33872/textwrap-honor-non-breaking-spaces.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20491>
_______________________________________


More information about the New-bugs-announce mailing list