1.1 --- a/moinformat/serialisers/html/moin.py Mon Oct 04 22:18:39 2021 +0200
1.2 +++ b/moinformat/serialisers/html/moin.py Mon Oct 04 22:19:02 2021 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 HTML serialiser.
1.6
1.7 -Copyright (C) 2017, 2018, 2019 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2017, 2018, 2019, 2021 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 @@ -256,7 +256,10 @@
1.13 pass
1.14
1.15 def directive(self, directive, extra):
1.16 - name, text = directive.split(None, 1)
1.17 +
1.18 + # Obtain a blank value if the value is missing.
1.19 +
1.20 + name, text = (directive.split(None, 1) + [""])[:2]
1.21
1.22 # Produce a readable redirect.
1.23