mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
confirm selected language supports smart_quotes or not (refs: #4112)
This commit is contained in:
parent
bfd39c12b2
commit
e03ec5b9fb
@ -686,11 +686,12 @@ class BuildEnvironment(object):
|
||||
else:
|
||||
self.settings['smart_quotes'] = self.config.smart_quotes
|
||||
|
||||
for tag in normalize_language_tag(language):
|
||||
if tag in smartchars.quotes:
|
||||
break
|
||||
else:
|
||||
self.settings['smart_quotes'] = False
|
||||
# confirm selected language supports smart_quotes or not
|
||||
for tag in normalize_language_tag(language):
|
||||
if tag in smartchars.quotes:
|
||||
break
|
||||
else:
|
||||
self.settings['smart_quotes'] = False
|
||||
|
||||
docutilsconf = path.join(self.srcdir, 'docutils.conf')
|
||||
# read docutils.conf from source dir, not from current dir
|
||||
|
Loading…
Reference in New Issue
Block a user