Backport fixes for French quotes from docutils

This commit is contained in:
Dmitry Shachnev 2017-04-17 14:25:28 +03:00
parent 9236beb9ee
commit f99f5b23ee
2 changed files with 7 additions and 1 deletions

View File

@ -141,3 +141,9 @@ if docutils_version < (0, 13, 2):
# Monkey patch the old docutils versions to fix the issue mentioned
# at https://sourceforge.net/p/docutils/bugs/313/
smartquotes.educateQuotes = educateQuotes
# Fix the issue with French quotes mentioned at
# https://sourceforge.net/p/docutils/mailman/message/35760696/
quotes = smartquotes.smartchars.quotes
quotes['fr'] = (u'«\u00a0', u'\u00a0»', u'', u'')
quotes['fr-ch'] = u'«»‹›'

View File

@ -303,7 +303,7 @@ def test_static_output(app):
(".//li", u'Ellipsis…'),
(".//li//code//span[@class='pre']", 'foo--"bar"...'),
(".//p", u'Этот «абзац» должен использовать „русские“ кавычки.'),
(".//p", u'Il dit : «Cest super !»'),
(".//p", u'Il dit : « Cest “super” ! »'),
],
'objects.html': [
(".//dt[@id='mod.Cls.meth1']", ''),