If you have adjacent hyperlinks with only whitespace between them, the whitespace gets removed when you hit enter.
Repro steps:
- Create a new post or reply.
- Enter the following text in the body:
hello world
(Or really any two words with a space in between) - Select the first word and click the Insert Hyperlink button (or use the Ctrl+K keyboard shortcut)
- Give it any url ... doesn't matter what.
- Select the second word and click the Insert Hyperlink button (or use the Ctrl+K keyboard shortcut)
- Give it any url ... doesn't matter what.
- Position the cursor at the end of the line and hit Enter.
The whitespace between the hyperlinks is erroneously removed. I propose that the correct HTML output should have an between the two hyperlinks to preserve the space in the output.
Instead, you'll find that it will actually look like this, with no space in between the words:
helloworld
Additionally, the markup will include an extra <a> tag for the second link in its own paragraph <p>:
<p><a href="http://www.microsoft.com/">hello</a><a href="http://www.bing.com">world</a></p><p><a href="http://www.bing.com"></a></p>
NOTE: This doesn't repro when there is no other text in the body, so follow the repro steps carefully.
NOTE: I'm observing this in Chrome on Win7