entity.py
changeset 9440 6880674c1a26
parent 9359 31a1813d53f3
parent 9432 030745ac9873
child 9478 2d7521881d3d
child 9591 5b8bc486d0dc
equal deleted inserted replaced
9439:549c999d06d2 9440:6880674c1a26
   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