mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix merging
This commit is contained in:
parent
0ee524e392
commit
98f7818101
@ -129,7 +129,7 @@ class CitationReferences(Transform):
|
|||||||
def apply(self):
|
def apply(self):
|
||||||
for citnode in self.document.traverse(nodes.citation_reference):
|
for citnode in self.document.traverse(nodes.citation_reference):
|
||||||
cittext = citnode.astext()
|
cittext = citnode.astext()
|
||||||
refnode = addnodes.pending_xref(cittext, reftype='citation',
|
refnode = addnodes.pending_xref(cittext, refdomain='std', reftype='citation',
|
||||||
reftarget=cittext, refwarn=True,
|
reftarget=cittext, refwarn=True,
|
||||||
ids=citnode["ids"])
|
ids=citnode["ids"])
|
||||||
refnode.source = citnode.source or citnode.parent.source
|
refnode.source = citnode.source or citnode.parent.source
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
:license: BSD, see LICENSE for details.
|
:license: BSD, see LICENSE for details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import re
|
||||||
import sys
|
import sys
|
||||||
from util import with_app, rootdir, raises
|
from util import with_app, rootdir, raises
|
||||||
from test_ext_graphviz import skip_if_graphviz_not_found
|
from test_ext_graphviz import skip_if_graphviz_not_found
|
||||||
|
Loading…
Reference in New Issue
Block a user