Skip to content

Commit

Permalink
TLDR-774 fix bug in numbering styles (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
NastyBoget authored Sep 27, 2024
1 parent 724e2d2 commit db9437f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dedoc/readers/docx_reader/numbering_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db9437f

Please sign in to comment.