Imagine that you write a comment in a WP blog like the following one:
*******
paragraph1 :-)
paragraph2 ;-)
paragraph3
*******
WP generates the following HTML code for it:
*******
<p>paragraph1 <img src="http://blogurl/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley"> </p>
<p>paragraph2 <img src="http://blogurl/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley"> </p>
<p>paragraph3</p>
*******
But now, if we edit the comment with wp-ajax-edit-comments. For example, a minor change:
*******
paragraph1 :-)
paragraph2 ;-)
paragraph33
*******
WP Ajax Edit Comments adds a <br> tag at the end of each smiley
*******
<p>paragraph1 <img src="http://blogurl/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley"><br>
paragraph2 <img src="http://blogurl/wp-includes/images/smilies/icon_wink.gif" alt=";-)" class="wp-smiley"><br>
paragraph33</p>
*******
Because of that, at least with my theme, the comment looks like:
*******
paragraph1 :-)
paragraph2 ;-)
paragraph3
*******
If you add a dot (.) after the smiley, the problem doesn't appear:
*******
paragraph1 :-) .
paragraph2 ;-)
paragraph33
*******
So, why does WP Ajax Edit Comments add those extra <br>? Don't you think this is a bug? It should respect the formatting of comments as WP leaves them...