Attachment 'macro.patch'

Download

   1 Index: rst.py
   2 ===================================================================
   3 RCS file: /cvs/TPS/moin/MoinMoin/parser/rst.py,v
   4 retrieving revision 1.1.1.4
   5 diff -u -r1.1.1.4 rst.py
   6 --- rst.py      16 Sep 2006 20:31:36 -0000      1.1.1.4
   7 +++ rst.py      16 Nov 2006 00:37:38 -0000
   8 @@ -586,11 +586,10 @@
   9                  content_offset, block_text, state, state_machine):
  10          # content contains macro to be called
  11          if len(content):
  12 +            macro = " ".join( content )
  13              # Allow either with or without brackets
  14 -            if content[0].startswith('[['):
  15 -                macro = content[0]
  16 -            else:
  17 -                macro = '[[%s]]' % content[0]
  18 +            if not content[0].startswith('[['):
  19 +                macro = '[[%s]]' % macro
  20              ref = reference(macro, refuri = macro)
  21              ref['name'] = macro
  22              return [ref]

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] (2006-11-16 00:45:26, 0.9 KB) [[attachment:macro.patch]]
 All files | Selected Files: delete move to page copy to page

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