Mercurial > repos > guerler > springsuite
comparison planemo/lib/python3.7/site-packages/docutils/parsers/rst/directives/references.py @ 0:d30785e31577 draft
"planemo upload commit 6eee67778febed82ddd413c3ca40b3183a3898f1"
| author | guerler | 
|---|---|
| date | Fri, 31 Jul 2020 00:18:57 -0400 | 
| parents | |
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| -1:000000000000 | 0:d30785e31577 | 
|---|---|
| 1 # $Id: references.py 7062 2011-06-30 22:14:29Z milde $ | |
| 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 'name': directives.unchanged} | |
| 23 | |
| 24 def run(self): | |
| 25 pending = nodes.pending(references.TargetNotes) | |
| 26 self.add_name(pending) | |
| 27 pending.details.update(self.options) | |
| 28 self.state_machine.document.note_pending(pending) | |
| 29 return [pending] | 
