# HG changeset patch # User Paul Boddie # Date 1635115947 -7200 # Node ID 4474f27d4b25971cf218cb38acc2d029335a25ed # Parent 8a1de3e6b7ef9c2b42f994d3611eac922c10ec52 Added convenience method for appending inline nodes to regions. diff -r 8a1de3e6b7ef -r 4474f27d4b25 moinformat/parsers/common.py --- a/moinformat/parsers/common.py Sat Oct 09 00:34:01 2021 +0200 +++ b/moinformat/parsers/common.py Mon Oct 25 00:52:27 2021 +0200 @@ -3,7 +3,7 @@ """ Moin wiki parsing functionality. -Copyright (C) 2017, 2018, 2019 Paul Boddie +Copyright (C) 2017, 2018, 2019, 2021 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -519,6 +519,12 @@ region.append(node) + def append_inline(self, region, node): + + "Append to 'region' the given 'node'." + + region.append_inline(node) + def end_region(self, region): "End the parsing of 'region', breaking out of the parsing loop."