entity.py
changeset 9440 6880674c1a26
parent 9359 31a1813d53f3
parent 9432 030745ac9873
child 9478 2d7521881d3d
child 9591 5b8bc486d0dc
--- a/entity.py	Wed Sep 11 18:04:05 2013 +0200
+++ b/entity.py	Tue Jan 21 15:11:16 2014 +0100
@@ -764,7 +764,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