# HG changeset patch # User Paul Boddie # Date 1562535790 -7200 # Node ID eb3b21f86161fce32abf59098125aba7962efef1 # Parent a0c28d5cff8fc2ac7f83772359596bb86f7bd673 Fixed the append point for containers so that text is generally added to blocks. This fixes enhanced table cells where multiple paragraphs are much more likely, but where text was being added alongside blocks, making some very untidy HTML output. diff -r a0c28d5cff8f -r eb3b21f86161 moinformat/tree/moin.py --- a/moinformat/tree/moin.py Mon Jul 01 22:30:20 2019 +0200 +++ b/moinformat/tree/moin.py Sun Jul 07 23:43:10 2019 +0200 @@ -64,7 +64,12 @@ "Return the container to which inline nodes are added." - return self + last = self.node(-1) + + if isinstance(last, Block): + return last + else: + return self def empty(self): return not self.nodes