equal
deleted
inserted
replaced
762 |
762 |
763 def _cw_mtc_transform(self, data, format, target_format, encoding, |
763 def _cw_mtc_transform(self, data, format, target_format, encoding, |
764 _engine=ENGINE): |
764 _engine=ENGINE): |
765 trdata = TransformData(data, format, encoding, appobject=self) |
765 trdata = TransformData(data, format, encoding, appobject=self) |
766 data = _engine.convert(trdata, target_format).decode() |
766 data = _engine.convert(trdata, target_format).decode() |
767 if format == 'text/html': |
767 if target_format == 'text/html': |
768 data = soup2xhtml(data, self._cw.encoding) |
768 data = soup2xhtml(data, self._cw.encoding) |
769 return data |
769 return data |
770 |
770 |
771 # entity cloning ########################################################## |
771 # entity cloning ########################################################## |
772 |
772 |