[issue6537] string.split shouldn't split on non-breaking spaces

2009-07-21 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue6537] string.split shouldn't split on non-breaking spaces

2009-07-21 Thread Eric Promislow
Eric Promislow added the comment: Thanks. For the record, I want textwrap.TextWrapper(..., break_long_words=False) or it will break after a non-breaking space if that gives an optimum length. -- status: closed -> open ___ Python tracker

[issue6537] string.split shouldn't split on non-breaking spaces

2009-07-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: split() is usually used to split words. To reflow text, use the textwrap module. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker _

[issue6537] string.split shouldn't split on non-breaking spaces

2009-07-21 Thread Eric Promislow
New submission from Eric Promislow : ActivePython 2.6.1.1 ... >>> a = u"abc\x0adef" >>> a.split() [u'abc', u'def'] >>> "\x0a" is a non-breaking space. This behavior means we can't easily use split() to reflow text. -- components: Interpreter Core messages: 90770 nosy: ericp severity: no