1.1 --- a/moinformat/parsers/moin.py Thu Feb 28 21:25:01 2019 +0100
1.2 +++ b/moinformat/parsers/moin.py Thu Feb 28 22:58:08 2019 +0100
1.3 @@ -286,7 +286,7 @@
1.4 "Handle horizontal alignment within 'attrs'."
1.5
1.6 value = self.match_group("value")
1.7 - attr = TableAttr("halign", value == "(" and "left" or value == ")" and "right" or "center", True)
1.8 + attr = TableAttr("align", value == "(" and "left" or value == ")" and "right" or "center", True)
1.9 attrs.append(attr)
1.10
1.11 def parse_heading(self, region):
2.1 --- a/moinformat/serialisers/html/graphviz.py Thu Feb 28 21:25:01 2019 +0100
2.2 +++ b/moinformat/serialisers/html/graphviz.py Thu Feb 28 22:58:08 2019 +0100
2.3 @@ -3,7 +3,7 @@
2.4 """
2.5 Graphviz serialiser, generating content for embedding in HTML documents.
2.6
2.7 -Copyright (C) 2018 Paul Boddie <paul@boddie.org.uk>
2.8 +Copyright (C) 2018, 2019 Paul Boddie <paul@boddie.org.uk>
2.9
2.10 This program is free software; you can redistribute it and/or modify it under
2.11 the terms of the GNU General Public License as published by the Free Software
2.12 @@ -30,7 +30,7 @@
2.13 "Select from 'd' the given 'keys'."
2.14
2.15 if not d:
2.16 - return []
2.17 + return {}
2.18
2.19 out = {}
2.20
3.1 --- a/moinformat/utils/graphviz.py Thu Feb 28 21:25:01 2019 +0100
3.2 +++ b/moinformat/utils/graphviz.py Thu Feb 28 22:58:08 2019 +0100
3.3 @@ -250,6 +250,11 @@
3.4
3.5 (self.output, errors) = end.communicate()
3.6
3.7 + # Test for errors.
3.8 +
3.9 + if end.wait() != 0:
3.10 + raise GraphvizError, errors
3.11 +
3.12 # Obtain any metadata.
3.13
3.14 if svg:
3.15 @@ -261,11 +266,6 @@
3.16 else:
3.17 self.metadata = {}
3.18
3.19 - # Test for errors.
3.20 -
3.21 - if end.wait() != 0:
3.22 - raise GraphvizError, errors
3.23 -
3.24 # Write the file separately, if requested.
3.25
3.26 if svg and filename: