Open mpogue2 opened 2 years ago
BOLD seems to work OK standalone. ITALICS seems to work OK standalone.
But, overlapping doesn't seem to work (e.g. LADIES), because this <span style=" font-size:large; font-weight:700; font-style:italic; color:#000000;"> in the middle can't be simplified to either <B> or <I>.
OK, I made it work, kinda.
I now detect that long combo SPAN, and replace it with B then I then text then /I then /B. This works fine when viewing the file in Safari, but it seems there is a bug in the HTML editor in Qt, which does not render this properly. So, now the simplification is done correctly, but the editor doesn't always show it correctly.
Bug:
This code is fragile, and I am sure there are other ways to break it, involving overlapping text classes.
But, it works better now than before, as of a6d661b7885964afa7121c3c888ef14cfbb8a2a4 .
BoldItalic doesn't simplify correctly to <B><I>. In fact, I'm not sure that overlapping types will work properly (fortunately, I don't really ever use these, except for BOLD, which seems to work fine).