summaryrefslogtreecommitdiff
path: root/sphinx/util/pycompat.py
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@inria.fr>2020-02-18 08:07:11 +0100
committerGuillaume Melquiond <guillaume.melquiond@inria.fr>2020-02-18 08:09:39 +0100
commitcea18198ce6a474e1ce0deaf78e79895748bd119 (patch)
tree87122711c8f0fa15dc0dbfd1aef3281b6c472dbe /sphinx/util/pycompat.py
parentee0656f51f8024f37015f0d15d3a048d322aee2b (diff)
downloadsphinx-git-cea18198ce6a474e1ce0deaf78e79895748bd119.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/util/pycompat.py')
0 files changed, 0 insertions, 0 deletions