Attachment 'tableofcontents.diff'

Download

   1 --- tableofcontents_old.py	2007-02-17 22:28:02.000000000 +0100
   2 +++ tableofcontents.py	2007-02-17 22:42:46.000000000 +0100
   3 @@ -76,7 +76,10 @@
   4          self.result.append(self.macro.formatter.escapedText(_('Contents')))
   5          self.result.append(self.macro.formatter.paragraph(0))
   6  
   7 -        self.process_lines(self.pre_re.sub('', self.macro.parser.raw).split('\n'),
   8 +        # Ignore headings before toc macro
   9 +        strip_raw = self.macro.parser.raw[self.macro.parser.raw.find('[[TableOfContents'):]
  10 +
  11 +        self.process_lines(self.pre_re.sub('', strip_raw).split('\n'),
  12                             self.macro.formatter.page.page_name)
  13          # Close pending lists
  14          for i in range(self.baseindent, self.indent):

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.