Loading generateBaseline/postprocessing_styling.py +1 −1 Original line number Diff line number Diff line Loading @@ -1299,7 +1299,7 @@ def update_references(docx_input, docx_output): counter = 0 # Loop over all paragraphs with style "BodyText" and change to "EX" for para in root.xpath('.//w:p[w:pPr/w:pStyle[@w:val="BodyText"]]', namespaces=ns): for para in root.xpath('.//w:p[w:pPr/w:pStyle[@w:val="BodyText" or @w:val="Textkrper"]]', namespaces=ns): old_val = para.get(f"{{{ns['w']}}}val") # A reference is a paragraph that contains: # - A pPr with pStyle "BodyText" (already checked in loop) Loading Loading
generateBaseline/postprocessing_styling.py +1 −1 Original line number Diff line number Diff line Loading @@ -1299,7 +1299,7 @@ def update_references(docx_input, docx_output): counter = 0 # Loop over all paragraphs with style "BodyText" and change to "EX" for para in root.xpath('.//w:p[w:pPr/w:pStyle[@w:val="BodyText"]]', namespaces=ns): for para in root.xpath('.//w:p[w:pPr/w:pStyle[@w:val="BodyText" or @w:val="Textkrper"]]', namespaces=ns): old_val = para.get(f"{{{ns['w']}}}val") # A reference is a paragraph that contains: # - A pPr with pStyle "BodyText" (already checked in loop) Loading