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

Name properly update_lists function

parent ca9cf684
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -828,11 +828,11 @@ def update_heading_styles(docx_input, docx_output):
            os.remove(tmp_path)


def update_unnumbered_lists(docx_input, docx_output):
def update_lists(docx_input, docx_output):
    """
    Updates unnumbered list items (starting with "- ") in tables to appear as bulleted lists.
    Updates list items (starting with "- ") in tables to appear as bulleted lists.
    For list items in tables: removes "- " prefix and creates separate paragraphs with FP style and numPr.
    For list items outside tables: removes "- " prefix and adds B1 style.
    For list items outside tables: adds B1 or BN style.
    
    Parameters
    ----------
@@ -2543,7 +2543,7 @@ def update_format_styles_cli():
    update_table_rows(args.docx_input, args.docx_output)
    update_notes(args.docx_input, args.docx_output)
    update_references(args.docx_input, args.docx_output)
    update_unnumbered_lists(args.docx_input, args.docx_output)
    update_lists(args.docx_input, args.docx_output)
    update_body_text_style(args.docx_input, args.docx_output)
    add_no_break_hyphens(args.docx_input, args.docx_output)
    update_references_style(args.docx_input, args.docx_output)