1.1 --- a/moinformat/serialisers/html/moin.py Fri Jun 03 18:43:44 2022 +0200
1.2 +++ b/moinformat/serialisers/html/moin.py Fri Jun 03 21:54:30 2022 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 HTML serialiser.
1.6
1.7 -Copyright (C) 2017, 2018, 2019, 2021 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2017, 2018, 2019, 2021, 2022 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 @@ -149,6 +149,12 @@
1.13 self.out("</li>")
1.14
1.15 def start_macro(self, name, args, nodes, inline):
1.16 +
1.17 + # Special case of a deliberately unexpanded macro.
1.18 +
1.19 + if nodes is None:
1.20 + return
1.21 +
1.22 tag = inline and "span" or "div"
1.23 self.out("<%s class='macro %s'>" % (tag, escape_text(name)))
1.24