mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch '2.0'
This commit is contained in:
commit
67be0b4309
2
CHANGES
2
CHANGES
@ -88,6 +88,8 @@ Bugs fixed
|
|||||||
* #6549: sphinx-build: Escaped characters in error messages
|
* #6549: sphinx-build: Escaped characters in error messages
|
||||||
* #6545: doctest comments not getting trimmed since Sphinx 1.8.0
|
* #6545: doctest comments not getting trimmed since Sphinx 1.8.0
|
||||||
* #6561: glossary: Wrong hyperlinks are generated for non alphanumeric terms
|
* #6561: glossary: Wrong hyperlinks are generated for non alphanumeric terms
|
||||||
|
* #6620: i18n: classifiers of definition list are not translated with
|
||||||
|
docutils-0.15
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -133,6 +133,9 @@ def apply_source_workaround(node: Element) -> None:
|
|||||||
node.source = definition_list_item.source
|
node.source = definition_list_item.source
|
||||||
node.line = definition_list_item.line - 1
|
node.line = definition_list_item.line - 1
|
||||||
node.rawsource = node.astext() # set 'classifier1' (or 'classifier2')
|
node.rawsource = node.astext() # set 'classifier1' (or 'classifier2')
|
||||||
|
elif isinstance(node, nodes.classifier) and not node.source:
|
||||||
|
# docutils-0.15 fills in rawsource attribute, but not in source.
|
||||||
|
node.source = node.parent.source
|
||||||
if isinstance(node, nodes.image) and node.source is None:
|
if isinstance(node, nodes.image) and node.source is None:
|
||||||
logger.debug('[i18n] PATCH: %r to have source, line: %s',
|
logger.debug('[i18n] PATCH: %r to have source, line: %s',
|
||||||
get_full_module_name(node), repr_domxml(node))
|
get_full_module_name(node), repr_domxml(node))
|
||||||
|
Loading…
Reference in New Issue
Block a user