diff --git a/dedoc/readers/docx_reader/numbering_extractor.py b/dedoc/readers/docx_reader/numbering_extractor.py index 35b7e85d..0bf7d22f 100644 --- a/dedoc/readers/docx_reader/numbering_extractor.py +++ b/dedoc/readers/docx_reader/numbering_extractor.py @@ -75,9 +75,9 @@ def parse(self, xml: Tag, paragraph_properties: BaseProperties, run_properties: self.styles_extractor.parse(lvl_info.style_id, paragraph_properties, StyleType.NUMBERING) if lvl_info.pPr: change_paragraph_properties(paragraph_properties, lvl_info.pPr) + # run properties are applied only to the numbering text ("lvlText" content) if lvl_info.rPr: change_run_properties(run_properties, lvl_info.rPr) - change_run_properties(paragraph_properties, lvl_info.rPr) run_properties.text = text paragraph_properties.list_level = self.state.levels_count