1.1 --- a/moinformat/serialisers/moin/graphviz.py Tue Jun 20 18:58:47 2023 +0200
1.2 +++ b/moinformat/serialisers/moin/graphviz.py Wed Jun 28 16:12:26 2023 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Moin Graphviz region serialiser.
1.6
1.7 -Copyright (C) 2018, 2021 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2018, 2021, 2023 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -28,20 +28,19 @@
1.13 input_formats = ["graphviz", "dot"]
1.14 formats = ["moin", "wiki"]
1.15
1.16 - def start_block(self):
1.17 - pass
1.18 -
1.19 - def end_block(self):
1.20 - pass
1.21 + def block(self, block):
1.22 + self.container(block)
1.23
1.24 - def directive(self, key, value, directive):
1.25 - if directive:
1.26 - self.out("#%s\n" % directive)
1.27 + def directive(self, directive):
1.28 + if directive.directive:
1.29 + self.out("#%s\n" % directive.directive)
1.30 else:
1.31 - self.out("//%s%s\n" % (value and "%s=" % key or key, value or ""))
1.32 + self.out("//%s%s\n" % (
1.33 + directive.value and "%s=" % directive.key or directive.key,
1.34 + directive.value or ""))
1.35
1.36 def text(self, text):
1.37 - self.out(text)
1.38 + self.out(text.s)
1.39
1.40 serialiser = MoinGraphvizSerialiser
1.41