Get rid of stray underscores at the cost of a feature(?)...
...that didn't occur anywhere anyway.
This commit is contained in:
parent
73e15f2a08
commit
6819014d30
1 changed files with 5 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue