why not add the nbsp when you save ?
-
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,
- The topic ‘why not add the nbsp when you save ?’ is closed to new replies.