Skip to content

Commit db9437f

Browse files
authored
TLDR-774 fix bug in numbering styles (#499)
1 parent 724e2d2 commit db9437f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dedoc/readers/docx_reader/numbering_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ def parse(self, xml: Tag, paragraph_properties: BaseProperties, run_properties:
7575
self.styles_extractor.parse(lvl_info.style_id, paragraph_properties, StyleType.NUMBERING)
7676
if lvl_info.pPr:
7777
change_paragraph_properties(paragraph_properties, lvl_info.pPr)
78+
# run properties are applied only to the numbering text ("lvlText" content)
7879
if lvl_info.rPr:
7980
change_run_properties(run_properties, lvl_info.rPr)
80-
change_run_properties(paragraph_properties, lvl_info.rPr)
8181

8282
run_properties.text = text
8383
paragraph_properties.list_level = self.state.levels_count

0 commit comments

Comments
 (0)