Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/docutils/parsers/rst/directives/references.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
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] |