Remove backslash stripping in domains.

Adds several ways to reinstate the old behaviour.

Fixes sphinx-doc/sphinx#6462
This commit is contained in:
Jakob Lykke Andersen
2019-10-06 17:23:55 +02:00
parent 593dcaf40c
commit e0f779ba3d
3 changed files with 41 additions and 2 deletions

View File

@@ -634,6 +634,17 @@ General configuration
.. versionchanged:: 1.1
Now also removes ``<BLANKLINE>``.
.. confval:: signature_backslash_strip_domain_override
A list of domain names for which to forcibly reinstate backslash stripping.
The value ``None`` means "no domains" while ``[]`` means every domain
(i.e., the behaviour before version 3.0).
Default is ``None``.
When backslash stripping is enabled then every occurrence of ``\\`` in a domain
directive will be changed to ``\``, even within string literals.
.. versionadded:: 3.0
.. _intl-options: