commit | 47a506fb8d6c654bcc1e66ea0eac6e38f0890ea6 | [log] [tgz] |
---|---|---|
author | Armin Ronacher <armin.ronacher@active-4.com> | Tue May 06 12:17:23 2008 +0200 |
committer | Armin Ronacher <armin.ronacher@active-4.com> | Tue May 06 12:17:23 2008 +0200 |
tree | 99953c3b43cc569da21729972dc23eaf877cb2a5 | |
parent | a5204a49756e56af090d50c4abc8c347494a275c [diff] [blame] |
Fixed bug that caused "for item in seq if expr" to fail if the loop is not accessing loop --HG-- branch : trunk
diff --git a/jinja2/compiler.py b/jinja2/compiler.py index e3b9e53..8b4abf6 100644 --- a/jinja2/compiler.py +++ b/jinja2/compiler.py
@@ -813,7 +813,7 @@ # tests in not extended loops become a continue if not extended_loop and node.test is not None: self.indent() - self.writeline('if ') + self.writeline('if not ') self.visit(node.test, loop_frame) self.write(':') self.indent()