DOCX Input: Fix incorrect bold font weight being used for heading styles even if the style definition does not specify bold. Fixes #1430831 [Private bug](https://bugs.launchpad.net/calibre/+bug/1430831)

This commit is contained in:
Kovid Goyal 2015-03-12 14:10:46 +05:30
parent e47cefcd2f
commit 1b020158c5

View File

@ -448,6 +448,8 @@ class Styles(object):
/* In word all paragraphs have zero margins unless explicitly specified in a style */ /* In word all paragraphs have zero margins unless explicitly specified in a style */
p, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0 } p, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0 }
/* In word headings only have bold font if explicitly specified */
h1, h2, h3, h4, h5, h6 { font-weight: normal }
/* Setting padding-left to zero breaks rendering of lists, so we only set the other values to zero and leave padding-left for the user-agent */ /* Setting padding-left to zero breaks rendering of lists, so we only set the other values to zero and leave padding-left for the user-agent */
ul, ol { margin: 0; padding-top: 0; padding-bottom: 0; padding-right: 0 } ul, ol { margin: 0; padding-top: 0; padding-bottom: 0; padding-right: 0 }