1.1 --- a/moinformat/serialisers/moin/moin.py Fri Jun 03 18:43:44 2022 +0200
1.2 +++ b/moinformat/serialisers/moin/moin.py Fri Jun 03 21:54:30 2022 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Moin wiki text serialiser.
1.6
1.7 -Copyright (C) 2017, 2018, 2021 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2017, 2018, 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 @@ -99,6 +99,11 @@
1.13
1.14 def start_macro(self, name, args, nodes, inline):
1.15
1.16 + # Special case of a deliberately unexpanded macro.
1.17 +
1.18 + if nodes is None:
1.19 + return
1.20 +
1.21 # Fallback case for when macros are not replaced.
1.22
1.23 if not nodes: