Skip to content

Commit

Permalink
replace "\n" from transifex/strings.xml with real linespace for fastl…
Browse files Browse the repository at this point in the history
…ane/fdroid
  • Loading branch information
tobiasKaminsky committed Dec 29, 2017
1 parent c4a238f commit 40c3035
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/metadata/generate_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
# copied on 2017/11/06 from https://github.com/grote/Transportr/blob/master/fastlane/generate_metadata.py
# adapted by Tobias Kaminsky

import codecs
import os
import shutil
import codecs
from xml.etree import ElementTree


XML_PATH = '../../src/main/res'
METADATA_PATH = '../../src/generic/fastlane/metadata/android/'
METADATA_DEV_PATH = '../../src/versionDev/fastlane/metadata/android/'
Expand Down Expand Up @@ -113,7 +112,7 @@ def save_file(text, directory, filename, dev):


def clean_text(text, limit=0):
text = text.replace('\\\'', '\'')
text = text.replace('\\\'', '\'').replace('\\n', '\n')
if limit != 0 and len(text) > limit:
print("Warning: Short Description longer than 80 characters, truncating...")
text = text[:limit]
Expand Down

0 comments on commit 40c3035

Please sign in to comment.