entity.py
changeset 9478 2d7521881d3d
parent 9469 032825bbacab
parent 9440 6880674c1a26
child 9635 aaf099172bb9
equal deleted inserted replaced
9475:7863c546b135 9478:2d7521881d3d
   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