projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a36aa
)
fixed xmlattr again
author
Armin Ronacher
<armin.ronacher@active-4.com>
Mon, 28 Apr 2008 17:59:02 +0000
(19:59 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Mon, 28 Apr 2008 17:59:02 +0000
(19:59 +0200)
--HG--
branch : trunk
jinja2/filters.py
patch
|
blob
|
history
diff --git
a/jinja2/filters.py
b/jinja2/filters.py
index ce8a976c119b7c72d4cec9af47bf13a9824bc076..5832700771f04b4e35f388fd01e2b79693355b1c 100644
(file)
--- a/
jinja2/filters.py
+++ b/
jinja2/filters.py
@@
-116,7
+116,7
@@
def do_xmlattr(_environment, d, autospace=True):
"""
rv = u' '.join(
u'%s="%s"' % (escape(key), escape(value))
- for key, value in d
ict(*args, **kwargs)
.iteritems()
+ for key, value in d.iteritems()
if value is not None and not isinstance(value, Undefined)
)
if autospace and rv: