diff --git a/scripts/shared.py b/scripts/shared.py index 3c9418cd..c4852fde 100644 --- a/scripts/shared.py +++ b/scripts/shared.py @@ -326,12 +326,12 @@ def update_readme( readme_path = path_join(paths["data"], args.quarter, "README.md") # Define section markers for each data source - section_start_line = f"\n" - section_end_line = f"\n" + section_start_line = f"\n" + section_end_line = f"\n" # Define entry markers for each plot (optional) and description - entry_start_line = f"\n" - entry_end_line = f"\n" + entry_start_line = f"\n" + entry_end_line = f"\n" if os.path.exists(readme_path): with open(readme_path, "r", encoding="utf-8") as f: @@ -356,7 +356,7 @@ def update_readme( sections_before = ordered_sections[:current_postion] # we find the last existing section that comes before this section for prev_section_title in reversed(sections_before): - prev_end_line = f"\n" + prev_end_line = f"\n" if prev_end_line in lines: insert_index = lines.index(prev_end_line) + 1 break