Merge pull request #4405 from sphinx-doc/fix_smartquotes_option

Fix smartquotes has been ignored
This commit is contained in:
Takeshi KOMIYA
2018-01-10 00:04:20 +09:00
committed by GitHub

View File

@@ -665,7 +665,7 @@ class BuildEnvironment(object):
language = self.config.language or 'en'
self.settings['language_code'] = language
if 'smart_quotes' not in self.settings:
self.settings['smart_quotes'] = True
self.settings['smart_quotes'] = self.config.smartquotes
# some conditions exclude smart quotes, overriding smart_quotes
for valname, vallist in iteritems(self.config.smartquotes_excludes):