mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1794d8f8d6
commit
d893b8c9c6
@ -143,9 +143,10 @@ class Cell(object):
|
|||||||
if self.col_span > 1:
|
if self.col_span > 1:
|
||||||
makeelement(tcPr, 'w:hMerge', w_val='restart')
|
makeelement(tcPr, 'w:hMerge', w_val='restart')
|
||||||
|
|
||||||
|
item = None
|
||||||
for item in self.items:
|
for item in self.items:
|
||||||
item.serialize(tc)
|
item.serialize(tc)
|
||||||
if isinstance(item, Table):
|
if item is None or isinstance(item, Table):
|
||||||
# Word 2007 requires the last element in a table cell to be a paragraph
|
# Word 2007 requires the last element in a table cell to be a paragraph
|
||||||
makeelement(tc, 'w:p')
|
makeelement(tc, 'w:p')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user