Bitcoin Forum

Other => Meta => Topic started by: TheButterZone on September 23, 2013, 10:05:46 PM



Title: Space added by forum where no space put there by poster
Post by: TheButterZone on September 23, 2013, 10:05:46 PM
Quote
Signature: HOxlhwW83HZCEMw2DBGiqyf0dJFTgCtjvwpypPndsIzScc5RhD5xOC1PXaSveZIiL5pKG7bH3kZ47gW ycbj0QUE=

Note the space inbetween the W and the y towards the end, especially apparent when you copy and paste that text. I didn't put the space there, and it doesn't show a space while editing.

Space error first appeared (for me) here: https://bitcointalk.org/index.php?topic=300414.msg3220444#msg3220444

ETA:
Quote
Signature: HOxlhwW83HZCEMw2DBGiqyf0dJFTgCtjvwpypPndsIzScc5RhD5xOC1PXaSveZIiL5pKG7bH3kZ47gW ycbj0QUE=
works when changed to
Code:
Signature: HOxlhwW83HZCEMw2DBGiqyf0dJFTgCtjvwpypPndsIzScc5RhD5xOC1PXaSveZIiL5pKG7bH3kZ47gWycbj0QUE=


Title: Re: Space added by forum where no space put there by poster
Post by: Vod on September 23, 2013, 11:18:56 PM
Quote
Signature: HOxlhwW83HZCEMw2DBGiqyf0dJFTgCtjvwpypPndsIzScc5RhD5xOC1PXaSveZIiL5pKG7bH3kZ47gW ycbj0QUE=

Note the space inbetween the W and the y towards the end, especially apparent when you copy and paste that text. I didn't put the space there, and it doesn't show a space while editing.

Space error first appeared (for me) here: https://bitcointalk.org/index.php?topic=300414.msg3220444#msg3220444

That's very odd - it doesn't even show in the source html.

What browser are you using?  Chrome?

Never mind, it shows up in IE as well.  I thought it might be browser specific post html processing of some sort.


Title: Re: Space added by forum where no space put there by poster
Post by: TheButterZone on September 23, 2013, 11:24:36 PM
FF v24


Title: Re: Space added by forum where no space put there by poster
Post by: tysat on September 23, 2013, 11:49:18 PM
It doesn't show a space in Chrome, got a screenshot of it showing in another browser?


Title: Re: Space added by forum where no space put there by poster
Post by: Vod on September 23, 2013, 11:52:56 PM
It doesn't show a space in Chrome, got a screenshot of it showing in another browser?

Copy and paste it into Notepad (if you use windows)


Title: Re: Space added by forum where no space put there by poster
Post by: TheButterZone on September 23, 2013, 11:58:17 PM
It doesn't show a space in Chrome, got a screenshot of it showing in another browser?

Copy and paste it into Notepad (if you use windows)

Or double-click the text. That should select the entire block, but it stops highlighting at the W. I can take a screenshot, but the space is barely perceptible even at max zoom (just before it line-breaks it).


Title: Re: Space added by forum where no space put there by poster
Post by: theymos on September 24, 2013, 12:23:42 AM
Very long unbroken words have spaces inserted into them so that they don't make your post too wide. You can avoid this by putting the text into [code] or, if you're OK with having your entire post scroll horizontally, [nobbc].


Title: Re: Space added by forum where no space put there by poster
Post by: DeathAndTaxes on September 24, 2013, 12:42:18 AM
The space is due to the way some browsers parsing the html code.

I see this as the raw html
Code:
<div class="quote">Signed message: This 1 BTC is for sale by TheButterZone for $140<br>Signature: HOxlhwW83HZCEMw2DBGiqyf0dJFTgCtjvwpypPndsIzScc5RhD5xOC1PXaSveZIiL5pKG7bH3kZ47gW<span style="width: 0; margin: 0 -0.6ex 0 -1px;"> </span>ycbj0QUE=</div>

Notice the span injected in the middle of the signature.  Not sure how you got part of the signature ended up inside a different div tag but different browsers are going to parse that differently.  Chrome adds no spaces or line breaks but the html "standard" is more like a guideline and different browsers = different outcomes.  Not sure the exact reason the forum's parser interprets a long string that way but as indicated above using code tag is a workaround.

Using code tags:
Code:
HOxlhwW83HZCEMw2DBGiqyf0dJFTgCtjvwpypPndsIzScc5RhD5xOC1PXaSveZIiL5pKG7bH3kZ47gWycbj0QUE=

Produces the following html:
Code:
<div class="code">HOxlhwW83HZCEMw2DBGiqyf0dJFTgCtjvwpypPndsIzScc5RhD5xOC1PXaSveZIiL5pKG7bH3kZ47gWycbj0QUE=</div>


Title: Re: Space added by forum where no space put there by poster
Post by: TheButterZone on September 24, 2013, 12:48:51 AM
Fixed, thanks all.