mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Input: Fix para styles for numbering blocks applied via pStyle not being applied
This commit is contained in:
parent
664fe0aba7
commit
45bc2213b7
@ -262,6 +262,9 @@ class Styles(object):
|
||||
if num_id is not None:
|
||||
p.set('calibre_num_id', '%s:%s' % (lvl, num_id))
|
||||
is_numbering = True
|
||||
ps = self.numbering.get_para_style(num_id, lvl)
|
||||
if ps is not None:
|
||||
parent_styles.append(ps)
|
||||
|
||||
for attr in ans.all_properties:
|
||||
if not (is_numbering and attr == 'text_indent'): # skip text-indent for lists
|
||||
|
Loading…
x
Reference in New Issue
Block a user