From 2c06826ae8bcda97d29201eb9306a5ae397a4703 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Mon, 15 Jan 2018 21:02:49 +0900 Subject: [PATCH 1/2] Remove duplicated transform entry --- sphinx/io.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sphinx/io.py b/sphinx/io.py index 6943a78d0..0bf03751b 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -92,9 +92,8 @@ class SphinxStandaloneReader(SphinxBaseReader): transforms = [ApplySourceWorkaround, ExtraTranslatableNodes, PreserveTranslatableMessages, Locale, CitationReferences, DefaultSubstitutions, MoveModuleTargets, HandleCodeBlocks, AutoNumbering, AutoIndexUpgrader, SortIds, - RemoveTranslatableInline, PreserveTranslatableMessages, FilterSystemMessages, - RefOnlyBulletListTransform, UnreferencedFootnotesDetector, SphinxSmartQuotes, - ManpageLink + RemoveTranslatableInline, FilterSystemMessages, RefOnlyBulletListTransform, + UnreferencedFootnotesDetector, SphinxSmartQuotes, ManpageLink ] # type: List[Transform] def __init__(self, app, *args, **kwargs): From 68e403a67b6d895fe45c3ef1f5f42e2289c15d63 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Mon, 15 Jan 2018 21:03:37 +0900 Subject: [PATCH 2/2] Process smart_quotes for translated text too --- sphinx/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/io.py b/sphinx/io.py index 0bf03751b..7044ab3c0 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -116,7 +116,7 @@ class SphinxI18nReader(SphinxBaseReader): DefaultSubstitutions, MoveModuleTargets, HandleCodeBlocks, AutoNumbering, SortIds, RemoveTranslatableInline, FilterSystemMessages, RefOnlyBulletListTransform, - UnreferencedFootnotesDetector, ManpageLink] + UnreferencedFootnotesDetector, SphinxSmartQuotes, ManpageLink] def set_lineno_for_reporter(self, lineno): # type: (int) -> None