From 0b31a08b9f7abc0dcbcd453f65feda6194cc2a1a Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Tue, 26 Oct 2021 19:23:39 +0200 Subject: [PATCH] Really fix --- .scripts/changelog_to_fastlane.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.scripts/changelog_to_fastlane.py b/.scripts/changelog_to_fastlane.py index 683ded3e3..b4857e3f6 100644 --- a/.scripts/changelog_to_fastlane.py +++ b/.scripts/changelog_to_fastlane.py @@ -24,8 +24,10 @@ with open('CHANGELOG.md') as changelog: text.append(re.sub(r'\[(.*?)\]\((.*?)\)', r'\1 (\2)', line)) for version, description in changelogs.items(): - if not description.strip(): + description = "".join(description).strip() + + if not description: continue with open(os.path.join("fastlane", "metadata", "android", "en-US", "changelogs", f"{version}.txt"), "w") as fastlane_file: - fastlane_file.write("".join(description).strip()) + fastlane_file.write(description)