From: Armin Ronacher Date: Sat, 17 Nov 2007 22:13:01 +0000 (+0100) Subject: fixed bug in parser, untagged 1.2 (ready for retagging) X-Git-Tag: 2.0rc1~234 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=256c304dae84fb172235fe28c9b36bdbbe487faa;p=jinja2.git fixed bug in parser, untagged 1.2 (ready for retagging) --HG-- branch : trunk --- diff --git a/.hgtags b/.hgtags index d49b211..e69de29 100644 --- a/.hgtags +++ b/.hgtags @@ -1 +0,0 @@ -870563da549d20ab1db45d438caef10c8ec1bf5d 1.2 diff --git a/jinja/parser.py b/jinja/parser.py index 40dccb2..b42ba74 100644 --- a/jinja/parser.py +++ b/jinja/parser.py @@ -108,10 +108,10 @@ class Parser(object): """ if self.stream: raise TemplateSyntaxError('raw directive does not support ' - 'any arguments.', lineno, + 'any arguments.', self.stream.lineno, self.filename) raise TemplateSyntaxError('missing end tag for raw directive.', - lineno, self.filename) + self.stream.lineno, self.filename) def parse_extends_directive(self): """