Report on non-breaking spaces in posts (was: How to join elements at the beginning and end of the list)
Jon Ribbens
jon+usenet at unequivocal.eu
Tue Oct 31 13:54:32 EDT 2017
On 2017-10-31, Stefan Ram <ram at zedat.fu-berlin.de> wrote:
> Ned Batchelder <ned at nedbatchelder.com> writes:
>> Â Â Â def wrapped_join(values, sep):
>
> Ok, here's a report on me seing non-breaking spaces in
> posts in this NG. I have written this report so that you
> can see that it's not my newsreader that is converting
> something, because there is no newsreader involved.
Yes Ned's post definitely had non-breaking spaces in; it looks like
Thunderbird is turning strings of spaces into ' \xa0+ ', presumably
because things that expect HTML will squash runs of spaces (even
though the post is not HTML...)
By the way I would commend 'od -tx1z' to you as it is *far* easier to
read:
0012460 20 0a 65 6e 63 61 70 73 75 6c 61 74 65 20 69 74 > .encapsulate it<
0012500 3a 0a 0a 20 c2 a0 c2 a0 c2 a0 20 64 65 66 20 77 >:.. ...... def w<
0012520 72 61 70 70 65 64 5f 6a 6f 69 6e 28 76 61 6c 75 >rapped_join(valu<
More information about the Python-list
mailing list