Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbudzyns <pawel.budzynski@cern.ch>2021-01-29 12:34:05 +0300
committerpbudzyns <pawel.budzynski@cern.ch>2021-01-29 12:34:05 +0300
commit28a37c29369c9065c3df3104c42407b6fbd48aaa (patch)
tree6c002224b02c42156a1888d7b55233b0146a4881 /sphinx/ext
parentac5079ed851585acb754ce5fb1c8c486de60d6f6 (diff)
local options handling
Diffstat (limited to 'sphinx/ext')
-rw-r--r--sphinx/ext/autodoc/directive.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py
index 2c82122fc..5f1db2ebb 100644
--- a/sphinx/ext/autodoc/directive.py
+++ b/sphinx/ext/autodoc/directive.py
@@ -93,13 +93,12 @@ def process_documenter_options(documenter: "Type[Documenter]", config: Config, o
if options[name] is not None and options[name].startswith('+'):
options[name] = ','.join([config.autodoc_default_options[name],
options[name][1:]])
- print(options[name])
else:
options[name] = config.autodoc_default_options[name]
elif isinstance(options.get(name), str) and options[name].startswith('+'):
# remove '+' from option argument if there's nothing to merge it with
- options[name] = options[name][1:]
+ options[name] = options[name].strip('+')
return Options(assemble_option_dict(options.items(), documenter.option_spec))