DOCX Input: Specify zero default margins for headings

DOCX Input: Fix extra top/bottom margins around headings when the
heading style in word does not specify any top/bottom margins.
This commit is contained in:
Kovid Goyal 2013-09-08 11:22:34 +05:30
parent 255fcce9e5
commit 7a4f87b992

View File

@ -437,7 +437,8 @@ class Styles(object):
'''\ '''\
body { font-family: %s; font-size: %s; color: %s } body { font-family: %s; font-size: %s; color: %s }
ul, ol, p { margin: 0; padding: 0 } /* In word all paragraphs have zero margins unless explicitly specified in a style */
ul, ol, p, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0 }
sup.noteref a { text-decoration: none } sup.noteref a { text-decoration: none }