Remove blanke lines before Android SECTIONS

This commit is contained in:
Dwayne Bailey 2024-08-13 13:28:16 +01:00
parent 3a921b0774
commit 1d98d6e1cd

View file

@ -35,7 +35,7 @@ echo "$iphone_strings" | wc -l
# Adapt \n to incluce a line break like Weblate does
sed -i "" -E '/<string /s/\\n/\n\\n/g' $android_strings_xml
# Remove blank lines before <! SECTION...
sed -i "" -E '/^$/d' $android_strings_xml
#sed -i "" -E '/^$/d' $android_strings_xml
# Remove EOF newlines
for xml_file in $android_strings_xml; do
truncate -s -1 $xml_file