Loading generateBaseline/pandocFilter.py +1 −1 Original line number Diff line number Diff line Loading @@ -257,7 +257,7 @@ def instertLineBeforeStartOfList(progress:Progress, mdLines:list[str]) -> list[s _inList = False _lines.append(line) print(f'{_lines}') #print(f'{_lines}') progress.stop_task(_taskID) return _lines Loading generateBaseline/postprocessing.py +2 −2 Original line number Diff line number Diff line Loading @@ -772,7 +772,7 @@ def update_heading_styles(docx_input, docx_output): # Change style from Heading 1 to Heading 8 pStyle_elems = para.xpath('./w:pPr/w:pStyle[@w:val="Heading1"]', namespaces=ns) if pStyle_elems: pStyle_elems[0].set(f"{{{ns['w']}}}val", "Heading8") pStyle_elems[0].set(f"{{{ns['w']}}}val", "Heading1")# Heading8 for certain specs. editHelp is going to harmonise that insert_page_break_before_heading(para, full_text) counter_annex += 1 # Annex subheading Heading 2: "A.1 Title", not matching "A.1.1 Title" Loading @@ -789,7 +789,7 @@ def update_heading_styles(docx_input, docx_output): # Change style from Heading 2 to Heading 9 pStyle_elems = para.xpath('./w:pPr/w:pStyle[@w:val="Heading2"]', namespaces=ns) if pStyle_elems: pStyle_elems[0].set(f"{{{ns['w']}}}val", "Heading9") pStyle_elems[0].set(f"{{{ns['w']}}}val", "Heading2")# Heading9 for certain specs. editHelp is going to harmonise that counter_annex += 1 elif re.match(r'^\s*History\s*', full_text): insert_page_break_before_heading(para, full_text) Loading Loading
generateBaseline/pandocFilter.py +1 −1 Original line number Diff line number Diff line Loading @@ -257,7 +257,7 @@ def instertLineBeforeStartOfList(progress:Progress, mdLines:list[str]) -> list[s _inList = False _lines.append(line) print(f'{_lines}') #print(f'{_lines}') progress.stop_task(_taskID) return _lines Loading
generateBaseline/postprocessing.py +2 −2 Original line number Diff line number Diff line Loading @@ -772,7 +772,7 @@ def update_heading_styles(docx_input, docx_output): # Change style from Heading 1 to Heading 8 pStyle_elems = para.xpath('./w:pPr/w:pStyle[@w:val="Heading1"]', namespaces=ns) if pStyle_elems: pStyle_elems[0].set(f"{{{ns['w']}}}val", "Heading8") pStyle_elems[0].set(f"{{{ns['w']}}}val", "Heading1")# Heading8 for certain specs. editHelp is going to harmonise that insert_page_break_before_heading(para, full_text) counter_annex += 1 # Annex subheading Heading 2: "A.1 Title", not matching "A.1.1 Title" Loading @@ -789,7 +789,7 @@ def update_heading_styles(docx_input, docx_output): # Change style from Heading 2 to Heading 9 pStyle_elems = para.xpath('./w:pPr/w:pStyle[@w:val="Heading2"]', namespaces=ns) if pStyle_elems: pStyle_elems[0].set(f"{{{ns['w']}}}val", "Heading9") pStyle_elems[0].set(f"{{{ns['w']}}}val", "Heading2")# Heading9 for certain specs. editHelp is going to harmonise that counter_annex += 1 elif re.match(r'^\s*History\s*', full_text): insert_page_break_before_heading(para, full_text) Loading