Really fix

This commit is contained in:
Sylvia van Os
2021-10-26 19:23:39 +02:00
parent a0884aa81c
commit 0b31a08b9f

View File

@@ -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)