Attachment 'text_moin_wiki.diff'

Download

   1 --- text_moin_wiki_old.py	2007-02-08 19:25:32.000000000 +0100
   2 +++ text_moin_wiki.py	2007-02-08 19:40:06.000000000 +0100
   3 @@ -88,6 +88,7 @@
   4  (?P<indent>^\s+)
   5  (?P<tableZ>\|\| $)
   6  (?P<table>(?:\|\|)+(?:<[^>]*?>)?(?!\|? $))
   7 +(?P<esc_heading>^\s*!(?P<esc_hmarker>=+)\s.*\s(?P=esc_hmarker) $)
   8  (?P<heading>^\s*(?P<hmarker>=+)\s.*\s(?P=hmarker) $)
   9  (?P<interwiki>[A-Z][a-zA-Z]+\:(%(q_string)s|([^\s'\"\:\<\|]([^\s%(punct)s]|([%(punct)s][^\s%(punct)s]))+))?)
  10  (?P<word>%(word_rule)s)
  11 @@ -745,6 +746,8 @@
  12          else:
  13              return self.formatter.text(word)
  14  
  15 +    def _esc_heading_repl(self, word):
  16 +        return self._heading_repl(word.strip(' !'))
  17  
  18      def _heading_repl(self, word):
  19          """Handle section headings."""
  20 @@ -894,7 +897,7 @@
  21          """ Replace match using type name """
  22          result = []
  23          for type, hit in match.groupdict().items():
  24 -            if hit is not None and not type in ["hmarker", ]:
  25 +            if hit is not None and not type in ["hmarker", "esc_hmarker" ]:
  26  
  27                  ##result.append(u'<span class="info">[replace: %s: "%s"]</span>' % (type, hit))
  28                  # Open p for certain types

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] (2007-02-08 19:15:31, 58.0 KB) [[attachment:screenshot.png]]
  • [get | view] (2007-02-17 22:03:57, 0.7 KB) [[attachment:tableofcontents.diff]]
  • [get | view] (2007-02-08 19:16:23, 1.2 KB) [[attachment:text_moin_wiki.diff]]
  • [get | view] (2007-02-17 22:04:16, 0.5 KB) [[attachment:title.py]]
 All files | Selected Files: delete move to page copy to page

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