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
commit d6b569af4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -665,7 +665,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: 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 # some conditions exclude smart quotes, overriding smart_quotes
for valname, vallist in iteritems(self.config.smartquotes_excludes): for valname, vallist in iteritems(self.config.smartquotes_excludes):