mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 11:13:14 +02:00
...
This commit is contained in:
parent
9a9dc3e9cb
commit
b002773b66
1 changed files with 3 additions and 2 deletions
|
|
@ -321,9 +321,10 @@ def css(self):
|
|||
|
||||
class Table(object):
|
||||
|
||||
def __init__(self, tbl, styles, para_map):
|
||||
def __init__(self, tbl, styles, para_map, is_sub_table=False):
|
||||
self.tbl = tbl
|
||||
self.styles = styles
|
||||
self.is_sub_table = is_sub_table
|
||||
|
||||
# Read Table Style
|
||||
style = {'table':TableStyle()}
|
||||
|
|
@ -367,7 +368,7 @@ def __init__(self, tbl, styles, para_map):
|
|||
self.paragraphs.append(p)
|
||||
self.resolve_para_style(p, overrides)
|
||||
|
||||
self.sub_tables = {x:Table(x, styles, para_map) for x in XPath('./w:tr/w:tc/w:tbl')(tbl)}
|
||||
self.sub_tables = {x:Table(x, styles, para_map, is_sub_table=True) for x in XPath('./w:tr/w:tc/w:tbl')(tbl)}
|
||||
|
||||
def override_allowed(self, name):
|
||||
'Check if the named override is allowed by the tblLook element'
|
||||
|
|
|
|||
Loading…
Reference in a new issue