summaryrefslogtreecommitdiff
path: root/sphinx/addnodes.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-06-18 22:58:21 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-06-18 22:59:48 +0900
commitfc36f9024688bb8abeb7d2e0d8cdbb716466d4cf (patch)
treee05e28d2360f4f1c1fbcd02c2ce3202d7b7f88d0 /sphinx/addnodes.py
parent3e2255c72056c5a34ad98bcfe982c868e028f1fd (diff)
downloadsphinx-git-fc36f9024688bb8abeb7d2e0d8cdbb716466d4cf.tar.gz
fix
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r--sphinx/addnodes.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py
index e1168a8ff..e06b25111 100644
--- a/sphinx/addnodes.py
+++ b/sphinx/addnodes.py
@@ -49,6 +49,11 @@ class translatable(object):
raise NotImplementedError
+class not_smartquotable(object):
+ """A node which does not support smart-quotes."""
+ support_smartquotes = False
+
+
class toctree(nodes.General, nodes.Element, translatable):
"""Node for inserting a "TOC tree"."""
@@ -266,13 +271,13 @@ class download_reference(nodes.reference):
"""Node for download references, similar to pending_xref."""
-class literal_emphasis(nodes.emphasis):
+class literal_emphasis(nodes.emphasis, not_smartquotable):
"""Node that behaves like `emphasis`, but further text processors are not
applied (e.g. smartypants for HTML output).
"""
-class literal_strong(nodes.strong):
+class literal_strong(nodes.strong, not_smartquotable):
"""Node that behaves like `strong`, but further text processors are not
applied (e.g. smartypants for HTML output).
"""