1.1 --- a/moinformat/parsers/graphviz.py Tue Nov 27 21:17:34 2018 +0100
1.2 +++ b/moinformat/parsers/graphviz.py Tue Nov 27 21:23:24 2018 +0100
1.3 @@ -43,16 +43,10 @@
1.4 "Handle format directives."
1.5
1.6 directive = self.match_group("directive")
1.7 + key = self.match_group("key")
1.8 + value = self.match_group("value")
1.9
1.10 - if directive:
1.11 - t = directive.split(None, 1)
1.12 - key = t[0]
1.13 - value = len(t) > 1 and t[1] or None
1.14 - else:
1.15 - key = self.match_group("key")
1.16 - value = self.match_group("value")
1.17 -
1.18 - self.add_node(region, Directive(key, value))
1.19 + self.add_node(region, Directive(key, value, directive))
1.20 self.new_block(region)
1.21
1.22