[wp-trac] [WordPress Trac] #30322: word-wrap space and &nbsp%

WordPress Trac noreply at wordpress.org
Thu Nov 13 16:05:51 UTC 2014


#30322: word-wrap space and &nbsp%
-------------------------------+------------------------------
 Reporter:  fjalestad          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Text Changes       |     Version:  4.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by fjalestad):

 Replying to [comment:1 helen]:
 > Do you have a plugin that could be inserting these? Can you test it with
 all plugins turned off or in an install that doesn't have any plugins? Are
 you pasting content into the editor?

 No plugins which could interfer.

 Background: Pasted text included utf8 space character \xc2\xa0 (invisible
 to the eye as it looks like an ordinary space \x20) but the css word-wrap
 wasn't working as it shouldn't.

 Scenario 1: Yes, pasting the content into the "text editor" and I've found
 out the utf8 space character \xc2\xa0 is saved to DB "as-is" which cause
 issue for word-wrap.

 Scenario 2: Yes, pasting the content into the "text editor" and I've found
 out the utf8 space character \xc2\xa0 is replaced with normal space \x20
 which works as it should with word-wrap.

 So it's technically not a real bug but an annoying issue with the editor
 not recognizing this and viewing  it as   in the editor when pasting
 or upon load from the DB.

 In my opinion both text editors should behave the same and it needs to be
 a clear way for this to be managed.

 Any suggestions for solutions to make sure that a non-programmer safely
 can save text w/o utf8 space character \xc2\xa0 ever being saved to DB ?

 IMHO

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30322#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list