Luke Ross

lxmlmeld

6 releases git clone https://lukeross.name/projects/lxmlmeld.git/

Meld-like templating using lxml.

Commit 6b3a436c69fb90547ae7f81932c3d08f1a7678dc

Fix bug in content().

Committed 16 Feb 2016 by Luke Ross

lxmlmeld/__init__.py

@@ -90,7 +90,7 @@ class Element(etree.ElementBase):
             self[:] = [text]
         elif structure:
             xml = etree.XML("<dispose>{}</dispose>".format(text))
-            self.replace(list(xml) or xml.text)
+            self.content(list(xml) or xml.text)
         else:
             self[:] = []
             self.text = text