• Hello,

    First, please note i am french and interested in the non breaking space before punctuation marks… I was about to make a comment that it was not working because i couldn’t see the special characaters in the code view of the post editor. tried to save, nothing…
    Then i dig a bit into the files and realized this was a filter that was added when you display the pages.
    So : don’t you think it would be better to add the special characters when you save the post ? Would’n’t it be better for performance ? Is there another reason why you chose to go this way.

    Also, a nice improvement would be to check for punctuation marks with no space AND no breaking/thin/etc space and to add one if it does not exist.
    I used to work with a regex that was also checking for double spaces before punctuation mark. This way you were really sure to have a perfect result.

    All the way, thank you for this nice plugin, i will make some advertisement for it as it is working well !

    All the best,

    https://www.ads-software.com/plugins/automatic-nbsp/

Viewing 1 replies (of 1 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hello 1ded6!
    Thanks for your post.

    Saving HTML entities like ‘&nbsp’ isn’t a good idea because of several factors:
    – source code may be difficult to read and edit with long texts
    – some formatting filters may remove ‘ ‘
    – TinyMCE strips many entities

    Users should focus on writing, and a work should be done under the hood.

    I develop the plugin all time. Thank you very much for your proposals.

    Kind regards,
    Damian

Viewing 1 replies (of 1 total)
  • The topic ‘why not add the nbsp when you save ?’ is closed to new replies.