1.1 --- a/moinformat/parsers/graphviz.py Tue Nov 27 21:13:04 2018 +0100
1.2 +++ b/moinformat/parsers/graphviz.py Tue Nov 27 21:17:34 2018 +0100
1.3 @@ -45,7 +45,9 @@
1.4 directive = self.match_group("directive")
1.5
1.6 if directive:
1.7 - key, value = directive.split(None, 1)
1.8 + t = directive.split(None, 1)
1.9 + key = t[0]
1.10 + value = len(t) > 1 and t[1] or None
1.11 else:
1.12 key = self.match_group("key")
1.13 value = self.match_group("value")
2.1 --- a/moinformat/serialisers/moin/graphviz.py Tue Nov 27 21:13:04 2018 +0100
2.2 +++ b/moinformat/serialisers/moin/graphviz.py Tue Nov 27 21:17:34 2018 +0100
2.3 @@ -32,7 +32,7 @@
2.4 pass
2.5
2.6 def directive(self, key, value):
2.7 - self.out("//%s%s\n" % (value and "%s=" % key or key, value or ""))
2.8 + self.out("#%s%s\n" % (value and "%s " % key or key, value or ""))
2.9
2.10 def text(self, text):
2.11 self.out(text)