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

Adding other paragraph styles where hyphens need to be replaced by no-break-hyphens

parent ad8e9587
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for generateBaseline/postprocessing.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -3375,7 +3375,7 @@ def add_no_break_hyphens(docx_input, docx_output):
    root = etree.fromstring(xml_data)
    after_toc = _content_after_toc(root, ns)
    counter_no_break_hyphens = 0
    style_names = ["Normal", "B1", "B2", "B3", "TB1", "TB2", "TB3", "BN"]
    style_names = ["Normal", "B1", "B2", "B3", "TB1", "TB2", "TB3", "BN", "TAL", "TAC", "TAR", "TAH"]
    pattern = re.compile(r'((?<=\w)-(?=\w))')

    # Loop over all paragraphs and replace all normal hyphens by no-break hyphens