Htmlz inline css doesn't single quote fonts & thus destroys html
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
John Schember |
Bug Description
Calibre 1.4.0 32 bit, Windows 7 Home Premium 64 bit
The css attribute 'font-family' often uses double quotes around a font, for example: "Times New Roman". This is perfectly OK in the stylesheet, but when used inline, it must be switched to single quotes ('Times New Roman') otherwise it will break up the style-attribute in wrong places, resulting in invalid html (style=" "Times New Roman", serif"). If any properties follow the font-family property, they will then generally be ignored by parsers and rendering engines. [For more information: http://
When Htmlz conversion is set to 'inline' for all css, and a font-family property is moved from the stylesheet to inline, calibre doesn't check and convert double quotes to single quotes, resulting in invalid Html.
Thanks!
Changed in calibre: | |
status: | Triaged → Fix Committed |
Changed in calibre: | |
status: | Fix Committed → Fix Released |
Changing the component for this bug.
assignee user-none
status triaged