moinformat/parsers/graphviz.py | raw changeset files shortlog |
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")