~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to MoinMoin/macro/FootNote.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    if request.footnotes:
44
44
        result = []
45
45
 
46
 
        # Start footnotes div. It is important to use formatter so open
47
 
        # inline tags will be closed, and we get correct direction.
48
 
        attr = formatter.langAttr()
49
 
        attr['class'] = 'footnotes'
50
 
        attr = [' %s="%s"' % (k, v) for k, v in attr.items()]
51
 
        result.append(formatter.rawHTML('<div%s>' % ''.join(attr)))
 
46
        result.append(formatter.div(1, css_class='footnotes'))
52
47
 
53
48
        # Add footnotes list
54
49
        result.append(formatter.bullet_list(1))
60
55
            fn_id = request.footnotes[idx][1]
61
56
            result.append(formatter.anchorlink(1, 'fnref' + fn_id,
62
57
                                               id='fndef' + fn_id))
63
 
            result.append(formatter.text(str(idx+1)))
 
58
            result.append(formatter.text(str(idx + 1)))
64
59
            result.append(formatter.anchorlink(0))
65
60
            result.append(formatter.text(" "))
66
61
                        
78
73
        result.append(formatter.bullet_list(0))
79
74
 
80
75
        # Finish div
81
 
        result.append(formatter.rawHTML('</div>'))
 
76
        result.append(formatter.div(0))
82
77
 
83
78
        request.footnotes = []
84
79
        return ''.join(result)