Get rid of stray underscores at the cost of a feature(?)...

...that didn't occur anywhere anyway.
This commit is contained in:
Alexander van Gessel 2008-12-15 05:16:05 +01:00
parent 73e15f2a08
commit 6819014d30

View file

@ -573,13 +573,11 @@ class Parser:
if value and value[i] == "_":
got_underscore = True
translatable = True
# This is not the assignement =, but from e.g. MENU_IMG_TXT
if i == 0 or value[i - 1] in [" ", "="]:
# remove whitespace before _
while i > 1:
if value[i - 1] != " ": break
i -= 1
value = value[:i]
# remove whitespace before _
while i > 1:
if value[i - 1] != " ": break
i -= 1
value = value[:i]
string = self.parse_string()
if got_underscore: