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

Take into account i.n as reference (when used in templates)

parent 481befd3
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1935,7 +1935,7 @@ def update_references(docx_input, docx_output):
            text_elems = run.xpath('.//w:t', namespaces=ns)
            for text_elem in text_elems:
                if text_elem.text:
                    if re.match(r'\[\d+\]', text_elem.text) or re.match(r'\[i\.\d+\]', text_elem.text):
                    if re.match(r'\[\d+\]', text_elem.text) or re.match(r'\[i\.\d+\]', text_elem.text) or re.match(r'\[i\.n\]', text_elem.text):
                        reference_run = run
                        break