summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc/directive.py
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@inria.fr>2020-02-18 08:07:11 +0100
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-03-15 22:28:02 +0900
commit77d84713a1474f902b91f5ad463b1cd253ef8496 (patch)
treed41708f5ff215ddf221bca1bed36ebbfbc0b0c49 /sphinx/ext/autodoc/directive.py
parent23ca07c1dded146da976cf858e5bf191dd960c91 (diff)
downloadsphinx-git-77d84713a1474f902b91f5ad463b1cd253ef8496.tar.gz
Fix broken handling of whitespace in GenericObject.
This actually makes the code matches its comment, i.e, whitespaces are now normalized the same way XRefRole does. Without the fix, when creating a directive/role via add_object_type, the following testcase fails with "WARNING: 'baz' reference target not found: foo bar". :baz:`foo bar` .. baz:: foo bar The current workaround is to explicitly mention the broken target, e.g., :baz:`foo bar <foobar>` .. baz:: foo bar
Diffstat (limited to 'sphinx/ext/autodoc/directive.py')
0 files changed, 0 insertions, 0 deletions