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.You are not allowed to attach a file to this page.