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 <rep...@bugs.python.org> <http://bugs.python.org/issue20491> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com