1.1 --- a/moinformat/serialisers/html/graphviz.py Tue Jun 20 18:58:47 2023 +0200
1.2 +++ b/moinformat/serialisers/html/graphviz.py Wed Jun 28 16:12:26 2023 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Graphviz serialiser, generating content for embedding in HTML documents.
1.6
1.7 -Copyright (C) 2018, 2019, 2022 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2018, 2019, 2022, 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 @@ -61,13 +61,13 @@
1.13 def end_block(self):
1.14 pass
1.15
1.16 - def directive(self, key, value, directive):
1.17 - if not self.directives.has_key(key):
1.18 - self.directives[key] = []
1.19 - self.directives[key].append(value)
1.20 + def directive(self, directive):
1.21 + if not self.directives.has_key(directive.key):
1.22 + self.directives[directive.key] = []
1.23 + self.directives[directive.key].append(directive.value)
1.24
1.25 def text(self, text):
1.26 - self.process_graph(text)
1.27 + self.process_graph(text.s)
1.28
1.29
1.30