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

Another try for blocktext-matching

parent 6ba90b85
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -986,7 +986,7 @@ def update_notes(docx_input, docx_output):
    counter_ew = 0

    # Loop over all elements to find "BlockText" and change to "NO"
    for pStyle_elem in root.xpath('.//w:pStyle[@w:val="Block Text"]', namespaces=ns):
    for pStyle_elem in root.xpath('.//w:pStyle[@w:val="Blocktext"]', namespaces=ns):
        # Find the paragraph that contains this pStyle
        para = pStyle_elem
        while para is not None and para.tag != f"{{{ns['w']}}}p":