mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Fix merging
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user