Commit bbe97ed3 authored by Jonas Schüppen's avatar Jonas Schüppen
Browse files

Fixed typos

parent 43fe4e21
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1791,7 +1791,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" or @w:val="Textkrper]]', 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)
@@ -1896,7 +1896,7 @@ def update_body_text_style(docx_input, docx_output):

    # Loop over all elements to find "BodyText" and "FirstParagraph" and change to "Normal"
    # Combine both XPath queries
    body_text_elems = root.xpath('.//w:pStyle[@w:val="BodyText" or @w:val="Textkrper]', namespaces=ns)
    body_text_elems = root.xpath('.//w:pStyle[@w:val="BodyText" or @w:val="Textkrper"]', namespaces=ns)
    first_para_elems = root.xpath('.//w:pStyle[@w:val="FirstParagraph"]', namespaces=ns)
    all_elems = body_text_elems + first_para_elems