Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91040
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-05-22 06:51 -0700 |
| References | <mjaqqd$t0m$1@news.albasani.net> <roy-4ADE41.22362621052015@news.panix.com> |
| Message-ID | <6f3cc2dc-650c-4bdd-b10f-551df3ff22ea@googlegroups.com> (permalink) |
| Subject | Re: textwrap.wrap() breaks non-breaking spaces |
| From | wxjmfauth@gmail.com |
----------
Textwrap will probably never work.
It is however possible to "sweat" on that subject.
It is probably not visible, but in my GUI interactive
interpreter, this works correctly (output stream).
Two variants: unicode litterals and glyphs.
Copy/paste from my interpreter window onto FireFox
window on Windows 7.
>>> print( (('a\t' + 'bbb ሴ\u00a0䕧\U00100061 ' * 20) + '\n')*2)
a bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb
ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb
ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧
a bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb
ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb
ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧
>>> print( (('a\t' + 'bbb ሴ 䕧 ' * 20) + '\n')*2)
a bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb
ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb
ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧
a bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb
ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb
ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧 bbb ሴ 䕧
>>> sys.version
'3.2.5 (default, May 15 2013, 23:06:03) [MSC v.1500 32 bit (Intel)]'
>>>
jmf
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
textwrap.wrap() breaks non-breaking spaces Johannes Bauer <dfnsonfsduifb@gmx.de> - 2015-05-17 21:39 +0200
Re: textwrap.wrap() breaks non-breaking spaces Tim Chase <python.list@tim.thechases.com> - 2015-05-17 15:12 -0500
Re: textwrap.wrap() breaks non-breaking spaces Ned Batchelder <ned@nedbatchelder.com> - 2015-05-17 13:24 -0700
Re: textwrap.wrap() breaks non-breaking spaces Roy Smith <roy@panix.com> - 2015-05-21 22:36 -0400
Re: textwrap.wrap() breaks non-breaking spaces wxjmfauth@gmail.com - 2015-05-22 06:51 -0700
csiph-web