summaryrefslogtreecommitdiff
path: root/sphinx/io.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-10 21:08:52 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-10 21:09:14 +0900
commit24a6578e09d1806d5888819abc1651bb3428b521 (patch)
tree54f8b4a3c9cc1bc55492aa3a6033d1bafeb69280 /sphinx/io.py
parent776bd09f434958b8d87a4ebe4824668c9368bdcf (diff)
downloadsphinx-git-24a6578e09d1806d5888819abc1651bb3428b521.tar.gz
Make SphinxSmartQuotes more inteligent
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/sphinx/io.py b/sphinx/io.py
index 471675e0e..61761f697 100644
--- a/sphinx/io.py
+++ b/sphinx/io.py
@@ -93,21 +93,14 @@ class SphinxStandaloneReader(SphinxBaseReader):
Locale, CitationReferences, DefaultSubstitutions, MoveModuleTargets,
HandleCodeBlocks, AutoNumbering, AutoIndexUpgrader, SortIds,
RemoveTranslatableInline, PreserveTranslatableMessages, FilterSystemMessages,
- RefOnlyBulletListTransform, UnreferencedFootnotesDetector
+ RefOnlyBulletListTransform, UnreferencedFootnotesDetector, SphinxSmartQuotes,
] # type: List[Transform]
def __init__(self, app, *args, **kwargs):
# type: (Sphinx, Any, Any) -> None
self.transforms = self.transforms + app.registry.get_transforms()
- self.smart_quotes = app.env.settings['smart_quotes']
SphinxBaseReader.__init__(self, app, *args, **kwargs) # type: ignore
- def get_transforms(self):
- transforms = SphinxBaseReader.get_transforms(self)
- if self.smart_quotes:
- transforms.append(SphinxSmartQuotes)
- return transforms
-
class SphinxI18nReader(SphinxBaseReader):
"""