Test that last ` ` in tree has a new line tail
(self)
| 451 | self.pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown()) |
| 452 | |
| 453 | def testBrTailNoNewline(self): |
| 454 | """ Test that last `<br>` in tree has a new line tail """ |
| 455 | root = etree.Element('root') |
| 456 | br = etree.SubElement(root, 'br') |
| 457 | self.assertEqual(br.tail, None) |
| 458 | self.pretty.run(root) |
| 459 | self.assertEqual(br.tail, "\n") |
| 460 | |
| 461 | |
| 462 | class testElementPreCodeTests(unittest.TestCase): |