Attachment 'text_docbook.diff'
Download 1 diff -r 784aeb024774 MoinMoin/formatter/text_docbook.py
2 --- a/MoinMoin/formatter/text_docbook.py Thu Feb 11 15:01:43 2010 +0100
3 +++ b/MoinMoin/formatter/text_docbook.py Wed Feb 17 17:22:55 2010 +0100
4 @@ -9,7 +9,7 @@
5 @license: GNU GPL, see COPYING for details.
6 """
7
8 -import os
9 +import os, re
10
11 from xml.dom import getDOMImplementation
12 from xml.dom.ext.reader import Sax
13 @@ -611,7 +611,13 @@
14 was_in_para = self.cur.nodeName == "para"
15 if was_in_para:
16 self.paragraph(0)
17 - text = FormatterBase.macro(self, macro_obj, name, args)
18 +
19 + #Regular Expression to match editlink arg
20 + _arg_editlink = r'(,\s*(?P<editlink>editlink))?'
21 + #And remove it
22 + macro_args = re.sub(_arg_editlink, '', args)
23 +
24 + text = FormatterBase.macro(self, macro_obj, name, macro_args)
25 if text.strip():
26 self._copyExternalNodes(Sax.FromXml(text).documentElement.childNodes, exclude=excludes)
27 if was_in_para:
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.