mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX: Handle table styles with no overrides
This commit is contained in:
parent
76fa3a16b3
commit
2ec590f068
@ -371,6 +371,8 @@ class Table(object):
|
||||
self.table_style, self.paragraph_style = style['table'], style.get('paragraph', None)
|
||||
self.run_style = style.get('run', None)
|
||||
self.overrides = self.table_style.overrides
|
||||
if self.overrides is inherit:
|
||||
self.overrides = {}
|
||||
if 'wholeTable' in self.overrides and 'table' in self.overrides['wholeTable']:
|
||||
self.table_style.update(self.overrides['wholeTable']['table'])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user