Loading generateBaseline/postprocessing.py +2 −2 Changes for generateBaseline/postprocessing.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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) Loading Loading
generateBaseline/postprocessing.py +2 −2 Changes for generateBaseline/postprocessing.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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) Loading