Hyphen Buglet
Moderator: Extend-A-Story Moderators
Hyphen Buglet
This is a tiny thing, but annoying. If you include a hyphen in your text, somehow a space gets inserted after it. For instance "knee-cap" come out as "knee- cap".
JH
I've noticed that fairly often. Any idea to what causes it?
...the very powerful and the very stupid have one thing in common. They don't alter their views to fit the facts. They alter the facts to fit their views. Which can be uncomfortable if you happen to be one of the facts that need altering. - Dr. Who
- Sir Toby
- Site Admin
- Posts: 413
- Joined: Sat Apr 26, 2003 3:42 pm
- Location: Portland, Oregon, USA
- Contact:
I haven't noticed this. I just tried a test myself [1], and did not see the problem. Do you have an example of where this has occurred, or a reliable way to reproduce the problem?
[1] - http://www.sir-toby.com/extend-a-story/ ... isode=1624
[1] - http://www.sir-toby.com/extend-a-story/ ... isode=1624
Here's an example:
http://www.sir-toby.com/extend-a-story/ ... isode=2599
Look at "knee-cap" in the final sentence.
http://www.sir-toby.com/extend-a-story/ ... isode=2599
Look at "knee-cap" in the final sentence.
JH
- Sir Toby
- Site Admin
- Posts: 413
- Joined: Sat Apr 26, 2003 3:42 pm
- Location: Portland, Oregon, USA
- Contact:
Okay, I think I have an idea on this one...
I looked at the episode and tried to edit it. I noticed that the word 'knee-cap' was split across two lines in the edit box. I removed the space after 'knee-', hit 'Preview' and the space was gone.
Stumped again at not being able to reproduce the problem, it occurred to me that this might be a browser issue. As I had performed all of my earlier tests with Firefox, I opened up IE and tried to reproduce the problem again. This time, after removing the space and previewing, the space returned. The issue seems be how IE handles hyphenated words acorss line boundaries in the text box. As you are typing the word 'knee-cap' into the text box, IE will immediately wrap the word at the hyphen. When IE submits the contents of the text box, the wrapping is sent as a line break, which gets converted into a space when displayed as HTML.
I looked at the episode and tried to edit it. I noticed that the word 'knee-cap' was split across two lines in the edit box. I removed the space after 'knee-', hit 'Preview' and the space was gone.
Stumped again at not being able to reproduce the problem, it occurred to me that this might be a browser issue. As I had performed all of my earlier tests with Firefox, I opened up IE and tried to reproduce the problem again. This time, after removing the space and previewing, the space returned. The issue seems be how IE handles hyphenated words acorss line boundaries in the text box. As you are typing the word 'knee-cap' into the text box, IE will immediately wrap the word at the hyphen. When IE submits the contents of the text box, the wrapping is sent as a line break, which gets converted into a space when displayed as HTML.