paul@83 | 1 | #!/usr/bin/env python |
paul@83 | 2 | |
paul@83 | 3 | """ |
paul@83 | 4 | Extended table syntax document tree nodes. |
paul@83 | 5 | |
paul@83 | 6 | Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk> |
paul@83 | 7 | |
paul@83 | 8 | This program is free software; you can redistribute it and/or modify it under |
paul@83 | 9 | the terms of the GNU General Public License as published by the Free Software |
paul@83 | 10 | Foundation; either version 3 of the License, or (at your option) any later |
paul@83 | 11 | version. |
paul@83 | 12 | |
paul@83 | 13 | This program is distributed in the hope that it will be useful, but WITHOUT |
paul@83 | 14 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
paul@83 | 15 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
paul@83 | 16 | details. |
paul@83 | 17 | |
paul@83 | 18 | You should have received a copy of the GNU General Public License along with |
paul@83 | 19 | this program. If not, see <http://www.gnu.org/licenses/>. |
paul@83 | 20 | """ |
paul@83 | 21 | |
paul@83 | 22 | from moinformat.tree.moin import Node |
paul@83 | 23 | |
paul@83 | 24 | class Continuation(Node): |
paul@83 | 25 | |
paul@83 | 26 | "Continuation padding for table content." |
paul@83 | 27 | |
paul@83 | 28 | def __init__(self, text): |
paul@83 | 29 | self.text = text |
paul@83 | 30 | |
paul@83 | 31 | def __repr__(self): |
paul@83 | 32 | return "Continuation(%r)" % self.text |
paul@83 | 33 | |
paul@83 | 34 | def prettyprint(self, indent=""): |
paul@83 | 35 | return "%sContinuation: %r" % (indent, self.text) |
paul@83 | 36 | |
paul@83 | 37 | def to_string(self, out): |
paul@83 | 38 | out.continuation(self.text) |
paul@83 | 39 | |
paul@83 | 40 | # vim: tabstop=4 expandtab shiftwidth=4 |