Skip to content

Commit

Permalink
confirm selected language supports smart_quotes or not (refs: sphinx-…
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Oct 31, 2017
1 parent bfd39c1 commit e03ec5b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sphinx/environment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,11 +686,12 @@ def read_doc(self, docname, app=None):
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
Expand Down

0 comments on commit e03ec5b

Please sign in to comment.