Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91040
| X-Received | by 10.236.28.107 with SMTP id f71mr10148794yha.11.1432302700307; Fri, 22 May 2015 06:51:40 -0700 (PDT) |
|---|---|
| X-Received | by 10.140.96.137 with SMTP id k9mr127324qge.10.1432302700291; Fri, 22 May 2015 06:51:40 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!z60no3210909qgd.1!news-out.google.com!k20ni44835qgd.0!nntp.google.com!z60no3210907qgd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Fri, 22 May 2015 06:51:40 -0700 (PDT) |
| In-Reply-To | <roy-4ADE41.22362621052015@news.panix.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:c3c5:8370:9d5c:33db:dd01:6521; posting-account=ung4FAoAAAC46zhHJ0Nsnuox7M5gDvs_ |
| NNTP-Posting-Host | 2a02:120b:c3c5:8370:9d5c:33db:dd01:6521 |
| References | <mjaqqd$t0m$1@news.albasani.net> <roy-4ADE41.22362621052015@news.panix.com> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <6f3cc2dc-650c-4bdd-b10f-551df3ff22ea@googlegroups.com> (permalink) |
| Subject | Re: textwrap.wrap() breaks non-breaking spaces |
| From | wxjmfauth@gmail.com |
| Injection-Date | Fri, 22 May 2015 13:51:40 +0000 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | base64 |
| Xref | csiph.com comp.lang.python:91040 |
Show key headers only | View raw
----------
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