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