mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Backport fixes for French quotes from docutils
This commit is contained in:
parent
9236beb9ee
commit
f99f5b23ee
@ -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'«»‹›'
|
||||
|
@ -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 : « C’est ‹ super › ! »'),
|
||||
(".//p", u'Il dit : « C’est “super” ! »'),
|
||||
],
|
||||
'objects.html': [
|
||||
(".//dt[@id='mod.Cls.meth1']", ''),
|
||||
|
Loading…
Reference in New Issue
Block a user