From e2823644595d1c119164f9c4928efedacb367720 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 Jun 2013 17:12:30 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/docx/styles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/docx/styles.py b/src/calibre/ebooks/docx/styles.py index 3888496e5a..21f45616fa 100644 --- a/src/calibre/ebooks/docx/styles.py +++ b/src/calibre/ebooks/docx/styles.py @@ -397,9 +397,9 @@ class Styles(object): ls = self.resolve_paragraph(last_para) ps = self.resolve_paragraph(p) if ls.linked_style is not None and ls.linked_style == ps.linked_style: - if ls.contextualSpacing: + if ls.contextualSpacing is True: ls.margin_bottom = 0 - if ps.contextualSpacing: + if ps.contextualSpacing is True: ps.margin_top = 0 last_para = p