From 331718a0dbf4f496f994cd1b524104504841c58a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 7 Jan 2017 21:34:24 +0530 Subject: [PATCH] DOCX Output: Fix missing tag causing conversion to fail. Fixes --- src/calibre/ebooks/docx/writer/tables.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/ebooks/docx/writer/tables.py b/src/calibre/ebooks/docx/writer/tables.py index fe1716b19e..4094ccec01 100644 --- a/src/calibre/ebooks/docx/writer/tables.py +++ b/src/calibre/ebooks/docx/writer/tables.py @@ -242,6 +242,8 @@ class Row(object): self.current_cell = None def add_block(self, block): + if self.current_cell is None: + self.start_new_cell(self.html_tag, self.orig_tag_style) self.current_cell.add_block(block) def add_table(self, table):