Skip to content

Commit

Permalink
Bug 816633 - Strip whitespace from localized manifest keys and values…
Browse files Browse the repository at this point in the history
…. r=kaze a=bb+
  • Loading branch information
stasm committed Nov 30, 2012
1 parent acecbd1 commit be99422
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/multilocale.py
Expand Up @@ -37,14 +37,15 @@ def parse_manifest_properties(filename):
m = property_line.search(line)
if not m or line.strip().startswith('#'):
continue
value = m.group('value').strip()
if '.' in m.group('id'):
entry_point, key = m.group('id').split('.',1)
if entry_point not in strings["entry_points"]:
strings["entry_points"][entry_point] = {}
strings["entry_points"][entry_point][key] = m.group('value')
strings["entry_points"][entry_point][key.strip()] = value
else:
key = m.group('id')
strings["default"][key] = m.group('value')
strings["default"][key.strip()] = value
return strings


Expand Down

0 comments on commit be99422

Please sign in to comment.