diff --git a/patchport.py b/patchport.py index 2459d73ec..f32cfbf53 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)