[wp-trac] [WordPress Trac] #19936: two-spaces after period - nbsp goes in the wrong place

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 31 16:59:18 UTC 2012


#19936: two-spaces after period - nbsp goes in the wrong place
--------------------------+-----------------------------
 Reporter:  jaddle        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When you enter two spaces (as, right or wrong, many people do after a
 period) in the visual editor, wordpress converts it to 'space +
 unicode_nbsp'. This mostly works fine, except that if the next sentence
 starts a newline, it will be indented by one space. The nbsp is 'attached'
 to the following sentence, in other words.

 A better solution would be to put the nbsp BEFORE the normal space, so
 that the nbsp would be attached to the period. The problem would still
 occur with right or full-justified text, but this is less common than
 left-justified text.

 Of course, many people will say that the real solution is to not (ab)use
 nbsp in this way, and to ignore double-spaces just like html normally
 would. I personally agree with this wholeheartedly, but some people are
 very attached to their double-spaces after sentences...

 I've attached an html files that demonstrates the html that wordpress
 produces. Try opening it and then resizing your browser window until
 "There they go" moves to a second line, and you will see that it is
 indented slightly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19936>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list