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

Fix typo in processMDSpec.py

parent 6d9bdea1
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -1013,7 +1013,11 @@ def update_unnumbered_lists(docx_input, docx_output):
        Find the abstractNumId used by the given style.
        Find the abstractNumId used by the given style.
        """
        """
        styles = styles_root
        styles = styles_root
        style = styles.xpath(f'//w:style[@w:styleId="{style_id}"]', namespaces=ns)[0]
        style_elements = styles.xpath(f'//w:style[@w:styleId="{style_id}"]', namespaces=ns)
        if not style_elements:
            print(f'Style {style_id} not found')
            return None
        style = style_elements[0]


        num_id_el = style.xpath('.//w:numId', namespaces=ns)
        num_id_el = style.xpath('.//w:numId', namespaces=ns)
        if not num_id_el:
        if not num_id_el:
+1 −1
Original line number Original line Diff line number Diff line
@@ -271,7 +271,7 @@ def processFile(args:argparse.Namespace) -> str:
				if match:
				if match:
					includeFilename = match.group(1)
					includeFilename = match.group(1)
					# Read the included file and replace the include statement with its content
					# Read the included file and replace the include statement with its content
					lines[lines.index(line)] = handleIncludesForFile(includeFilename, os.path.dirname(filename))
					lines[lines.index(line)] = handleIncludesForFile(includeFilename, os.path.dirname(filename), args)


			return ''.join(lines)
			return ''.join(lines)