Call formatter.node as should be proper from formatter.fragement.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 5 Jul 2012 06:39:34 +0000 (08:39 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 5 Jul 2012 06:39:34 +0000 (08:39 +0200)
wrw/sp/util.py

index 0b31c65..795bf57 100644 (file)
@@ -142,7 +142,7 @@ class formatter(object):
 
     @classmethod
     def fragment(cls, out, el, *args, **kw):
-        cls(out=out, root=el, *args, **kw).element(el)
+        cls(out=out, root=el, *args, **kw).node(el)
 
     def update(self, **ch):
         ret = type(self).__new__(type(self))