mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3795 from mitya57/stable
Better wording for the html_use_smartypants deprecation message
This commit is contained in:
commit
74b50c6368
@ -675,8 +675,10 @@ class BuildEnvironment(object):
|
|||||||
language = (self.config.language or 'en').replace('_', '-')
|
language = (self.config.language or 'en').replace('_', '-')
|
||||||
self.settings['language_code'] = language
|
self.settings['language_code'] = language
|
||||||
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. Use the "
|
warnings.warn("html_use_smartypants option is deprecated. Smart "
|
||||||
"smart_quotes option in docutils.conf instead.",
|
"quotes are on by default; if you want to disable "
|
||||||
|
"or customize them, use the smart_quotes option in "
|
||||||
|
"docutils.conf.",
|
||||||
RemovedInSphinx17Warning)
|
RemovedInSphinx17Warning)
|
||||||
if language in smartchars.quotes:
|
if language in smartchars.quotes:
|
||||||
self.settings['smart_quotes'] = self.config.html_use_smartypants
|
self.settings['smart_quotes'] = self.config.html_use_smartypants
|
||||||
|
Loading…
Reference in New Issue
Block a user