View Single Post
Old 06-24-2020, 04:30 AM   #1
mcdummy
Connoisseur
mcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the rough
 
mcdummy's Avatar
 
Posts: 73
Karma: 7130
Join Date: Apr 2015
Device: PRS-T3
Removal of undefined classes from text

I noticed a strange behaviour in calibre 4.19 for the following situation:

In the text: both <p class="center">... and <div class="center">... are used

In the corresponding style file: Only p.center is defined but a definition of div.center is not present.

Therefore, not formatting is applied to the <div class="center"> passages.

When I use the button in the editor for removing undefined classes (my German translation uses "removing unused classes from the text", but "undefined" seems more appropriate) from the text, it does not report any undefined/unused classes in the text.

Shouldn't it remove or at least indicate that div.center is not defined? I think that previous versions did this, but I'm not sure.

Regards,

McDummy
mcdummy is offline   Reply With Quote