buildframework/helium/external/python/lib/2.5/docutils-0.5-py2.5.egg/docutils/parsers/rst/directives/references.py
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 180 e02a83d4c571
child 592 3215c239276a
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
     1 # $Id: references.py 4667 2006-07-12 21:40:56Z wiemann $
       
     2 # Authors: David Goodger <goodger@python.org>; Dmitry Jemerov
       
     3 # Copyright: This module has been placed in the public domain.
       
     4 
       
     5 """
       
     6 Directives for references and targets.
       
     7 """
       
     8 
       
     9 __docformat__ = 'reStructuredText'
       
    10 
       
    11 from docutils import nodes
       
    12 from docutils.transforms import references
       
    13 from docutils.parsers.rst import Directive
       
    14 from docutils.parsers.rst import directives
       
    15 
       
    16 
       
    17 class TargetNotes(Directive):
       
    18 
       
    19     """Target footnote generation."""
       
    20 
       
    21     option_spec = {'class': directives.class_option}
       
    22 
       
    23     def run(self):
       
    24         pending = nodes.pending(references.TargetNotes)
       
    25         pending.details.update(self.options)
       
    26         self.state_machine.document.note_pending(pending)
       
    27         nodelist = [pending]
       
    28         return nodelist