Test that last ` ` in tree has a new line tail
(self)
| 475 | self.pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown()) |
| 476 | |
| 477 | def testBrTailNoNewline(self): |
| 478 | """ Test that last `<br>` in tree has a new line tail """ |
| 479 | root = etree.Element('root') |
| 480 | br = etree.SubElement(root, 'br') |
| 481 | self.assertEqual(br.tail, None) |
| 482 | self.pretty.run(root) |
| 483 | self.assertEqual(br.tail, "\n") |
| 484 | |
| 485 | |
| 486 | class testElementPreCodeTests(unittest.TestCase): |