mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Output: Fix nested tables not working
This commit is contained in:
parent
732e92fb3f
commit
1794d8f8d6
@ -142,8 +142,12 @@ class Cell(object):
|
|||||||
makeelement(tcPr, 'w:vMerge', w_val='restart')
|
makeelement(tcPr, 'w:vMerge', w_val='restart')
|
||||||
if self.col_span > 1:
|
if self.col_span > 1:
|
||||||
makeelement(tcPr, 'w:hMerge', w_val='restart')
|
makeelement(tcPr, 'w:hMerge', w_val='restart')
|
||||||
|
|
||||||
for item in self.items:
|
for item in self.items:
|
||||||
item.serialize(tc)
|
item.serialize(tc)
|
||||||
|
if isinstance(item, Table):
|
||||||
|
# Word 2007 requires the last element in a table cell to be a paragraph
|
||||||
|
makeelement(tc, 'w:p')
|
||||||
|
|
||||||
def applicable_borders(self, edge):
|
def applicable_borders(self, edge):
|
||||||
if edge == 'left':
|
if edge == 'left':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user