1.1 --- a/moinformat/macros/attachlist.py Mon Dec 12 00:38:07 2022 +0100
1.2 +++ b/moinformat/macros/attachlist.py Tue Dec 13 22:52:52 2022 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 AttachList macro for Moin compatibility.
1.6
1.7 -Copyright (C) 2019 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2019, 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 @@ -75,7 +75,8 @@
1.13
1.14 for filename in filenames:
1.15 text = [Text(filename)]
1.16 - nodes = [Link([LinkLabel(text)], LinkTarget("attachment", filename))]
1.17 + nodes = [Link([LinkLabel(text)], LinkTarget("attachment", filename,
1.18 + pagename=pagename))]
1.19 items.append(ListItem(nodes, indent, marker, space, num))
1.20
1.21 # Replace the macro node with the list.