1.1 --- a/moinformat/tree.py Tue Jul 17 23:16:52 2018 +0200
1.2 +++ b/moinformat/tree.py Tue Jul 17 23:18:13 2018 +0200
1.3 @@ -151,6 +151,8 @@
1.4
1.5
1.6
1.7 +# Block nodes.
1.8 +
1.9 class Block(Container):
1.10
1.11 "A block in the page."
1.12 @@ -400,6 +402,8 @@
1.13
1.14
1.15
1.16 +# Inline nodes.
1.17 +
1.18 class Inline(Container):
1.19
1.20 "Generic inline formatting."
1.21 @@ -499,6 +503,8 @@
1.22
1.23
1.24
1.25 +# Nodes without children.
1.26 +
1.27 class Node:
1.28
1.29 "A document node without children."
1.30 @@ -519,6 +525,22 @@
1.31 def to_string(self, out):
1.32 out.break_()
1.33
1.34 +class Continuation(Node):
1.35 +
1.36 + "Continuation padding for table content."
1.37 +
1.38 + def __init__(self, text):
1.39 + self.text = text
1.40 +
1.41 + def __repr__(self):
1.42 + return "Continuation(%r)" % self.text
1.43 +
1.44 + def prettyprint(self, indent=""):
1.45 + return "%sContinuation: %r" % (indent, self.text)
1.46 +
1.47 + def to_string(self, out):
1.48 + out.continuation(self.text)
1.49 +
1.50 class Rule(Node):
1.51
1.52 "A horizontal rule."