Propagate value of DEFAULT_LANG to docutils reST parser.

That way the parsed node tree gets proper information about the
language, which can be then used for e.g. language-aware smart quotes or
hyphenation.
This commit is contained in:
Vladimír Vondruš 2017-11-29 22:42:54 +01:00
commit abb91fc3be

View file

@ -234,6 +234,7 @@ class RstReader(BaseReader):
extra_params = {'initial_header_level': '2',
'syntax_highlight': 'short',
'input_encoding': 'utf-8',
'language_code': self.settings.get('DEFAULT_LANG'),
'exit_status_level': 2,
'embed_stylesheet': False}
user_params = self.settings.get('DOCUTILS_SETTINGS')