From 489785785679dfccedb3e696caf18878209f2b84 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sat, 13 Apr 2024 13:27:55 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Fixed=20markdown=20syntax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)