Skip to content
Snippets Groups Projects
Commit 266d167e authored by Laurent DAVERIO's avatar Laurent DAVERIO
Browse files

The Lingua extractor must not generate a parse error in case of extra blank...

The Lingua extractor must not generate a parse error in case of extra blank spaces inside curly brackets.
parent 42d611f5
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ class LinguaMakoExtractor(Extractor, MessageExtractor):
elif source.startswith(compat.b('elif')):
source = source[2:] # Replace "elif" with "if"
source += compat.b('pass')
code = io.BytesIO(source)
code = io.BytesIO(source)
for msg in self.python_extractor(
self.filename, self.options, code, code_lineno -1):
if translator_strings:
......
......@@ -125,3 +125,6 @@ ${_(u'bar')}
% except:
<p>Failed!</p>
% endtry
## TRANSLATOR: this should not cause a parse error
${ 1 }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment