From 462fe7fd93c50d15cd59d428eaf739671cd2c449 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sat, 3 Jul 2021 13:39:19 +0200 Subject: Trim whitespaces from description texts This fixes spurious differences after a roundtrip through Google Play, breaking change detection and thus triggering unnecessary metadata updates. --- toolchain/generate-fastlane-metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/generate-fastlane-metadata.py b/toolchain/generate-fastlane-metadata.py index 40059f0e..699806a9 100755 --- a/toolchain/generate-fastlane-metadata.py +++ b/toolchain/generate-fastlane-metadata.py @@ -147,7 +147,7 @@ def createFastlaneFile( applicationName, filenameToPopulate, fileContent ): # Now write out file contents! with open(path + '/' + filenameToPopulate, 'w') as f: - f.write(text) + f.write(text.strip()) # trim whitespaces, to avoid spurious differences after a Google Play roundtrip # Create the summary appname.yml file used by F-Droid to summarise this particular entry in the repository # see https://f-droid.org/en/docs/Build_Metadata_Reference/ -- cgit v1.2.1