From 444a673753812c414f24b93be405e9ab41bc2511 Mon Sep 17 00:00:00 2001 From: milde Date: Fri, 14 Jun 2024 15:03:12 +0000 Subject: [PATCH] Fix attribute names in transforms.references docstring examples. Fixup for [r3916] (2005-10-02). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9755 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/docutils/transforms/references.py | 62 +++++++++++++++--------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/docutils/docutils/transforms/references.py b/docutils/docutils/transforms/references.py index 6be98bb64..3ec1bfd21 100644 --- a/docutils/docutils/transforms/references.py +++ b/docutils/docutils/transforms/references.py @@ -159,23 +159,23 @@ class IndirectHyperlinks(Transform): a) Indirect external references:: - + indirect external - - + The "refuri" attribute is migrated back to all indirect targets from the final direct target (i.e. a target not referring to another indirect target):: - + indirect external - - Once the attribute is migrated, the preexisting "refname" attribute @@ -183,26 +183,26 @@ class IndirectHyperlinks(Transform): b) Indirect internal references:: - + - + indirect internal - - + Targets which indirectly refer to an internal target become one-hop indirect (their "refid" attributes are directly set to the internal target's "id"). References which indirectly refer to an internal target become direct internal references:: - + indirect internal - - + + """ default_priority = 460 @@ -336,16 +336,16 @@ class ExternalTargets(Transform): Given:: - + direct external - + The "refname" attribute is replaced by the direct "refuri" attribute:: direct external - + """ default_priority = 640 @@ -380,9 +380,9 @@ class InternalTargets(Transform): Given:: - + direct internal - + The "refname" attribute is replaced by "refid" linking to the target's "id":: @@ -390,7 +390,7 @@ class InternalTargets(Transform): direct internal - + """ for name in target['names']: refid = self.document.nameids.get(name) @@ -417,14 +417,14 @@ class Footnotes(Transform): A labeled autonumbered footnote reference: - + An unlabeled autonumbered footnote reference: - - + + Unlabeled autonumbered footnote. - + Labeled autonumbered footnote. @@ -439,18 +439,18 @@ class Footnotes(Transform): A labeled autonumbered footnote reference: - + 2 An unlabeled autonumbered footnote reference: - + 1 - +