Attachment 'wikisnl.py'

Download

   1 # -*- coding: iso-8859-1 -*-
   2 
   3 import re
   4 from MoinMoin.parser import wiki
   5 
   6 class Parser(wiki.Parser):
   7     """
   8     We do almost the same, just not drop single newlines
   9     """
  10     nld = re.compile(r"\r?\n")
  11     def format(self, formatter):
  12         """
  13         Format
  14         """
  15         self.raw = self.nld.sub("\n\n",self.raw)
  16         wiki.Parser.format(self, formatter)

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-03-15 16:14:41, 0.4 KB) [[attachment:wikisnl.py]]
  • [get | view] (2010-06-03 23:45:31, 0.4 KB) [[attachment:wikisnl_192.py]]
 All files | Selected Files: delete move to page copy to page

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