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)