entity.py
branchstable
changeset 9432 030745ac9873
parent 9310 80c58c35145f
child 9440 6880674c1a26
--- a/entity.py	Sat Dec 14 14:29:37 2013 +0100
+++ b/entity.py	Mon Jan 13 15:17:11 2014 +0100
@@ -775,7 +775,7 @@
                           _engine=ENGINE):
         trdata = TransformData(data, format, encoding, appobject=self)
         data = _engine.convert(trdata, target_format).decode()
-        if format == 'text/html':
+        if target_format == 'text/html':
             data = soup2xhtml(data, self._cw.encoding)
         return data