View Single Post
Old 10-27-2012, 04:56 PM   #138
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,869
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by elchamaco View Post
Hi i'm testing this last version and i found some extrange behaviour i think is not reported with find/replace in normal mode.
i look <p> </p> and replace with <p>&nbspc;</p> i get <p>&amp;nbspc;</p>
i look <p>&amp;nbspc;</p> and replace with <p> </p> lines are deleted, they go to the heaven of empty lines.

If i save a file with <p class="test"></p> line is replaced with <p class="test"/>

HTML Tidy is off, i donīt like the function as it changes my html code. So in theory it's not a html tidy problem.

Thanks.
The reason your first line fails, is nbspc is not a known entity. & nbsp ; (spaces added. Remove before use)

The second:
The form is techinically correct , but many devices ignore empty paragraphs.
Best practice is to put one of the non-breaking spaces between the tags
theducks is online now