diff MoinMoin/macro/FootNote.py @ 3056:b7914fb12243

macro.FootNote: bug fix for MoinMoinBugs/FootNoteNumbering (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 21 Feb 2008 19:41:15 +0100
parents 01f05e74aa9c
children 1ad6243cdf06
line wrap: on
line diff
--- a/MoinMoin/macro/FootNote.py	Wed Feb 20 11:07:18 2008 +0100
+++ b/MoinMoin/macro/FootNote.py	Thu Feb 21 19:41:15 2008 +0100
@@ -70,7 +70,7 @@
 
         # Add footnotes list
         result.append(formatter.number_list(1))
-
+        subidx = 0
         for ctr in range(request.footnote_ctr):
             fn_txt = request.footnotes[ctr]
             if not fn_txt in request.footnotes:
@@ -86,7 +86,7 @@
             result.append(wikiutil.renderText(request, WikiParser, fn_txt))
 
             items = []
-            subidx = 0
+            # ToDo check why that loop is needed?
             for backlink_id, idx in this_txt_footnotes:
                 # Add item
                 item = formatter.anchorlink(1, backlink_id)