Closed Bug 451649 Opened 16 years ago Closed 16 years ago

[silme] properties parser ignores entities which beginns with spaces

Categories

(Mozilla Localizations :: Infrastructure, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adriank, Unassigned)

References

Details

(Whiteboard: [compare-locales compat])

The properties parser in Silme ignores entities which beginns with spaces like

" stateBlockedPolicy=This download has been blocked by your Security Zone Policy" 

in toolkit/locales/en-US/chrome/mozapps/downloads/downloads.properties.

I think that we need to change this regexp:
entityPattern = re.compile('^([^#!\s\r\n][^=:\r\n]*?)\s*[:=][ \t]*(.*?)[ \t]*$',re.M)
to solve the problem.
Whiteboard: [compare-locales compat]
Oh, sure. Please, take a look at Pike's regexp for properties and also make sure that your regexp covers multiline properties.
Then give me a patch and we're done :)
Blocks: 452311
thanks Gandalf :)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.