~ubuntu-branches/ubuntu/jaunty/python-docutils/jaunty

« back to all changes in this revision

Viewing changes to docutils/parsers/rst/directives/references.py

  • Committer: Bazaar Package Importer
  • Author(s): martin f. krafft
  • Date: 2006-07-10 11:45:05 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060710114505-otkhqcslevewxmz5
Tags: 0.4-3
Added build dependency on python-central (closes: #377580).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Author: David Goodger, Dmitry Jemerov
2
2
# Contact: goodger@users.sourceforge.net
3
 
# Revision: $Revision: 1.5 $
4
 
# Date: $Date: 2002/10/24 00:57:32 $
 
3
# Revision: $Revision: 4156 $
 
4
# Date: $Date: 2005-12-08 05:43:13 +0100 (Thu, 08 Dec 2005) $
5
5
# Copyright: This module has been placed in the public domain.
6
6
 
7
7
"""
12
12
 
13
13
from docutils import nodes
14
14
from docutils.transforms import references
 
15
from docutils.parsers.rst import directives
15
16
 
16
17
 
17
18
def target_notes(name, arguments, options, content, lineno,
18
19
                 content_offset, block_text, state, state_machine):
19
20
    """Target footnote generation."""
20
21
    pending = nodes.pending(references.TargetNotes)
 
22
    pending.details.update(options)
21
23
    state_machine.document.note_pending(pending)
22
24
    nodelist = [pending]
23
25
    return nodelist
 
26
 
 
27
target_notes.options = {'class': directives.class_option}