Permalink
Browse files

Merge pull request #975 from dorkster/bugfixes

Trim spaces at the end of data strings collected by xgettext.py
  • Loading branch information...
2 parents 5d29fb6 + 58c8b66 commit 32d6f69ef4c5b9f46f51294113d2e5226dc8d7c1 @clintbellanger committed Sep 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mods/fantasycore/languages/xgettext.py
@@ -38,15 +38,15 @@ def extract(filename):
aString += str(i+1)
comments.append(aString)
del aString
- keys.append(line[line.find('=') + 1:].strip('\n').replace("\"", "\\\""))
+ keys.append(line[line.find('=') + 1:].strip('\n').replace("\"", "\\\"").rstrip())
# handle the special case: bonus={stat},{value}
if line.startswith('bonus='):
aString = filename
aString += ':'
aString += str(i+1)
comments.append(aString)
del aString
- keys.append(line[line.find('=') + 1: line.find(',')])
+ keys.append(line[line.find('=') + 1: line.find(',')].rstrip())
# this removes duplicates from keys in a clean way (without screwing up the order)
def remove_duplicates():

0 comments on commit 32d6f69

Please sign in to comment.