(self, xml)
| 466 | self.pretty = markdown.treeprocessors.PrettifyTreeprocessor(md) |
| 467 | |
| 468 | def prettify(self, xml): |
| 469 | root = etree.fromstring(xml) |
| 470 | self.pretty.run(root) |
| 471 | return etree.tostring(root, encoding="unicode", short_empty_elements=False) |
| 472 | |
| 473 | def testPreCodeEmpty(self): |
| 474 | xml = "<pre><code></code></pre>" |
no test coverage detected