def depart_entry(self, node): TextTranslator.depart_entry(self, node) # replace return codes by @<br>{} text = self.table[-1].pop().strip() text = text.replace('\n', '@<br>{}') self.table[-1].append(text)
def depart_entry(self, node): TextTranslator.depart_entry(self, node) # replace return codes by @<br>{} text = self.table.lines[-1][-1].text.strip() self.table.lines[-1][-1].text = text.replace('\n', '@<br>{}')