From 4222669a7298d58d98116b161503c8fd5b681d1b Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sun, 17 May 2020 16:40:54 +0300 Subject: [PATCH] Fix version code detection in patchport --- patchport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patchport.py b/patchport.py index 2459d73..f32cfbf 100644 --- a/patchport.py +++ b/patchport.py @@ -199,9 +199,9 @@ for patch in os.listdir(os.path.join(cutthecord_folder, "patches")): # Add supported version to readme of that patch, hacky # https://stackoverflow.com/a/35130508/3286892 with open(readme_path, 'r') as f: - readme_text = f.read().replace(f'- {from_versionname}', + readme_text = f.read().replace(f'- {from_versionname}\n', f'- {from_versionname}\n' - f'- {to_versionname}') + f'- {to_versionname}\n') with open(readme_path, "w") as f: f.write(readme_text)