diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-06-18 22:58:21 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-06-18 22:59:48 +0900 |
commit | fc36f9024688bb8abeb7d2e0d8cdbb716466d4cf (patch) | |
tree | e05e28d2360f4f1c1fbcd02c2ce3202d7b7f88d0 /sphinx/addnodes.py | |
parent | 3e2255c72056c5a34ad98bcfe982c868e028f1fd (diff) | |
download | sphinx-git-fc36f9024688bb8abeb7d2e0d8cdbb716466d4cf.tar.gz |
fix
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r-- | sphinx/addnodes.py | 9 |
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). """ |