def doprint(self, expr): """ Prints the expression as MathML. """ mathML = Printer._print(self, expr) res = mathML.toxml() return res
def doprint(self, expr): """ Prints the expression as MathML. """ mathML = Printer._print(self, expr) unistr = mathML.toxml() xmlbstr = unistr.encode('ascii', 'xmlcharrefreplace') res = xmlbstr.decode() return res
def doprint(self, expr): mathML = Printer._print(self, expr) return mathML.toxml(encoding=self._settings['encoding'])
def doprint(self, expr): mathML = Printer._print(self, expr) return mathML.toxml()