Fixed the profile.py file and removed a useless newline call
authorArmin Ronacher <armin.ronacher@active-4.com>
Sun, 6 Jun 2010 13:14:55 +0000 (15:14 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sun, 6 Jun 2010 13:14:55 +0000 (15:14 +0200)
--HG--
branch : trunk

examples/profile.py
jinja2/compiler.py

index 70f1e0d83175fb99c8cc795309dafb16b5ca8b29..0c907ae3f12a64e21087a9a591b1407b780b1bb1 100644 (file)
@@ -12,7 +12,7 @@ context = {
 
 source = """\
 % macro testmacro(x)
-  <span>{{ x }}</span>
+  <span>${x}</span>
 % endmacro
 <!doctype html>
 <html>
index 8660f8c05d52731608369c6ea0f0968481405858..57641596a32aadc87b43d68528a2846ea749b80f 100644 (file)
@@ -1223,8 +1223,6 @@ class CodeGenerator(NodeVisitor):
         else:
             finalize = unicode
 
-        self.newline(node)
-
         # if we are inside a frame that requires output checking, we do so
         outdent_later = False
         if frame.require_output_check: