mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Don't override the smart_quotes setting if it was already set
This is needed to fix: https://github.com/sphinx-contrib/spelling/issues/1
This commit is contained in:
parent
50640b700b
commit
ee52c7cd4f
@ -676,6 +676,7 @@ class BuildEnvironment(object):
|
|||||||
|
|
||||||
language = self.config.language or 'en'
|
language = self.config.language or 'en'
|
||||||
self.settings['language_code'] = language
|
self.settings['language_code'] = language
|
||||||
|
if 'smart_quotes' not in self.settings:
|
||||||
self.settings['smart_quotes'] = True
|
self.settings['smart_quotes'] = True
|
||||||
if self.config.html_use_smartypants is not None:
|
if self.config.html_use_smartypants is not None:
|
||||||
warnings.warn("html_use_smartypants option is deprecated. Smart "
|
warnings.warn("html_use_smartypants option is deprecated. Smart "
|
||||||
|
Loading…
Reference in New Issue
Block a user