Commit c28269a4 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix for update_table_rows in postprocessing

parent e0aaeaa4
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for generateBaseline/postprocessing.py: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -1948,8 +1948,8 @@ def update_table_rows(docx_input, docx_output):

    # Ensure table paragraphs without pPr are treated like Compact paragraphs.
    for para in root.xpath('.//w:tr//w:p[not(w:pPr)]', namespaces=ns):
        pPr = OxmlElement('w:pPr')
        pStyle = OxmlElement('w:pStyle')
        pPr = etree.Element(f"{{{ns['w']}}}pPr")
        pStyle = etree.Element(f"{{{ns['w']}}}pStyle")
        pStyle.set(f"{{{ns['w']}}}val", "Compact")
        pPr.append(pStyle)
        para.insert(0, pPr)