Htmlz does not apply inline css from <body>
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
John Schember |
Bug Description
Calibre 1.7 32bit, Windows 7 64 bit
When a stylesheet has a selector and styling for the body element, and htmlz conversion is set to inline, htmlz does not apply it.
I think the error is in the following file: https:/
259 if not style['
260 style_a = 'page-break-before: always;' + ' ' if style_a else '' + style_a
I don't see any sense in line 260; it either sets `style_a` to page-break-
It should be along the lines of:
style['
style_a = '%s' % style
if `style` is modifiable;
or
style_a = re.sub(
(the `;?` being for when it at the end of string with no semicolon and the `|` being for when page-break-before doesn't yet exist in the string)
Thanks
description: | updated |
description: | updated |
description: | updated |
Changing the component for this bug.
assignee user-none
status triaged