From 97281c456987415ecb2b9b862860f0ccad89aac9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Feb 2015 18:34:25 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/docx/writer/from_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/docx/writer/from_html.py b/src/calibre/ebooks/docx/writer/from_html.py index 28e701e4f9..bea8435ebe 100644 --- a/src/calibre/ebooks/docx/writer/from_html.py +++ b/src/calibre/ebooks/docx/writer/from_html.py @@ -92,7 +92,7 @@ class Block(object): if self.runs and ts == self.runs[-1].style: run = self.runs[-1] else: - run = TextRun(ts, html_parent or self.html_block) + run = TextRun(ts, self.html_block if html_parent is None else html_parent) self.runs.append(run) preserve_whitespace = ws in {'pre', 'pre-wrap'} if ignore_leading_whitespace and not preserve_whitespace: