View Single Post
Old 02-08-2014, 09:20 AM   #3
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Kovid -- thanks

Quote:
Originally Posted by kovidgoyal View Post
There is no way to know that a tag is empty, since an empty tag could be styled with css to have a fixed width/height or border or background color.
That's more advanced than I was thinking (maybe I was anyway).

It was just that I was using the new editor window dropdown to select [H1], etc. and then tried the [B] and other buttons.

My use of 'empty' a little simplistic: if there was 0 length text selected (i.e. just the insertion point) then I called it empty since I didn't see any value in at least the 'standard' format tags such as<b></b>

When there's a capability to store F&R strings, I can come up with some RegEx (or at least I think I can) to handle things like that
phossler is offline   Reply With Quote