From a18ee1670224f7457399cee102920d44c2a443a7 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 6 Sep 2023 06:15:02 +0200 Subject: [PATCH] HTML helper: fix a bug and its impact --- 03-A_Simple_Errand-Annie_library.html | 2 +- 05-Eventful_Evening-secret_organization.html | 2 +- 06-Library-At_Night.html | 2 +- ga-Who_Died_Today-Emily_intro.html | 2 +- html_resources/md2htmlhelper.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/03-A_Simple_Errand-Annie_library.html b/03-A_Simple_Errand-Annie_library.html index 974bbb1..e39c08b 100644 --- a/03-A_Simple_Errand-Annie_library.html +++ b/03-A_Simple_Errand-Annie_library.html @@ -1,4 +1,4 @@ -
diff --git a/05-Eventful_Evening-secret_organization.html b/05-Eventful_Evening-secret_organization.html index 7cf7679..565a359 100644 --- a/05-Eventful_Evening-secret_organization.html +++ b/05-Eventful_Evening-secret_organization.html @@ -1,4 +1,4 @@ -
diff --git a/06-Library-At_Night.html b/06-Library-At_Night.html index 1604523..307f4dc 100644 --- a/06-Library-At_Night.html +++ b/06-Library-At_Night.html @@ -1,4 +1,4 @@ -
diff --git a/ga-Who_Died_Today-Emily_intro.html b/ga-Who_Died_Today-Emily_intro.html index 69fea1b..7dc0994 100644 --- a/ga-Who_Died_Today-Emily_intro.html +++ b/ga-Who_Died_Today-Emily_intro.html @@ -1,4 +1,4 @@ -
diff --git a/html_resources/md2htmlhelper.py b/html_resources/md2htmlhelper.py index c117011..cf81963 100755 --- a/html_resources/md2htmlhelper.py +++ b/html_resources/md2htmlhelper.py @@ -40,7 +40,7 @@ if os.path.isfile(sys.argv[2]): chapter_name = input("Chapter name: ") template_file = open("html_resources/template.html", "r") template_lines = template_file.readlines(); -template_lines[0].replace("Chapter Name", chapter_name) +template_lines[0] = template_lines[0].replace("Chapter Name", chapter_name) source_file = open(sys.argv[1], "r", encoding="utf-8") destination_file = open(sys.argv[2], "w", encoding="ascii")