diff --git a/src/utils.py b/src/utils.py index 7542be7..bd9cf70 100644 --- a/src/utils.py +++ b/src/utils.py @@ -80,8 +80,10 @@ def format_changelog(name: str, response: dict[str, str]) -> dict[str, str]: def write_changelog_to_file() -> None: """The function `write_changelog_to_file` writes a given changelog json to a file.""" - markdown_table = """| Resource Name | Version | Changelog | Published On | Build By\n - "|---------|---------|-----------|--------------|--------------|\n""" + markdown_table = """ + | Resource Name | Version | Changelog | Published On | Build By|\n + |---------------|---------|-----------|--------------|---------|\n + """ for app_data in changelogs.values(): name_link = app_data["ResourceName"] version = app_data["Version"] @@ -94,7 +96,7 @@ def write_changelog_to_file() -> None: changelog = changelog.replace("\n", "
") # Add row to the Markdown table string - markdown_table += f"| {name_link} | {version} | {changelog} | {published_at} | {built_by}\n" + markdown_table += f"| {name_link} | {version} | {changelog} | {published_at} | {built_by} |\n" with Path(changelog_file).open("w", encoding="utf_8") as file1: file1.write(markdown_table)