View Single Post
Old 05-05-2016, 04:32 AM   #1
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 876
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Inline STYLE attribute not converted to class

Hi,

I've noticed a small issue when performing a conversion to epub.

It seems (at least in some cases) that Calibre is ignoring converting the style attribute to a class, when the attribute is upper case.

eg:
Code:
<p style="font-weight: bold">
replaces the inline style with a class.

Whereas
Code:
<p STYLE="font-weight: bold">
the style remains inline.


Not sure if this is a bug, or by design.

Seems to happen with any ebook with an (x)html source, including AZW.

Attached is a sample xhtml file and resulting epub (it does the same for HTML as well).
Attached Files
File Type: zip calibre_test_xhtml.zip (33.0 KB, 99 views)
sherman is offline   Reply With Quote