I've only ever noticed this happening when I edit my fanfics.
At the end of a chapter (file), there are sometimes notes which I want remove. For example:
Code:
...</p>
</div><b>Notes for the Chapter:</b><blockquote class="userstuff">
<p>Blah, Blah, notes, thoughts, coming attractions, blah, blah, blah, and so on and so forth</p>
</blockquote></div>
Now, I remove the space(s) in front of the first </div>, then select all the text between the two </div>. Since I want to have the 2nd </div> on the next line, my first thought is to hit enter.
I expect to see:
Code:
...</p>
</div>
</div>
What actually happens is:
Code:
...</p>
</div>
</div>
Anywhere else in the text that I've tried, if I select a bunch of text and hit enter, the expected happens: the text is deleted and everything after is on the next line with no extra spaces, tabs, etc.
If I then select from right after the > to < and hit enter, the spaces remain. If I select from right after the > to < and hit delete, the spaces are gone, and then hitting enter works as expected.