From db9437fa08bf549a38f4e132dade380ee3e3c7ae Mon Sep 17 00:00:00 2001 From: "Zykina (Bogatenkova) Anastasiya" Date: Fri, 27 Sep 2024 17:20:37 +0300 Subject: [PATCH] TLDR-774 fix bug in numbering styles (#499) --- dedoc/readers/docx_reader/numbering_extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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