Attachment 'docbook_patch_1.8.7.diff'

Download

   1 diff -r c68058eaa6be MoinMoin/formatter/text_docbook.py
   2 --- a/MoinMoin/formatter/text_docbook.py	Thu Feb 25 16:52:28 2010 +0100
   3 +++ b/MoinMoin/formatter/text_docbook.py	Fri Mar 12 11:17:20 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 @@ -612,7 +612,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.
  • [get | view] (2010-03-12 10:23:28, 1.0 KB) [[attachment:docbook_patch_1.8.7.diff]]
  • [get | view] (2010-02-17 16:23:16, 1.0 KB) [[attachment:text_docbook.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.