Update nodes skipping smart quotes text processing

literal_block dit not belong to the list anyhow as it is block level
node and further it inherits from Docutils FixedTextElement, not
TextElement.

refs #3824, #3826
This commit is contained in:
jfbu 2017-06-18 13:21:41 +02:00
parent 2b2652056b
commit f99fe20e50

View File

@ -345,13 +345,17 @@ class SphinxSmartQuotes(SmartQuotes):
for txtnode in txtnodes:
nodetype = texttype[isinstance(txtnode.parent,
(nodes.literal,
nodes.literal_block,
addnodes.literal_emphasis,
addnodes.literal_strong,
addnodes.desc_signature,
addnodes.productionlist,
addnodes.desc_optional,
addnodes.desc_addname,
addnodes.desc_annotation,
addnodes.desc_name,
addnodes.desc_optional,
addnodes.desc_parameter,
addnodes.desc_parameterlist,
addnodes.desc_signature_line,
addnodes.desc_type,
addnodes.production,
nodes.math,
nodes.image,
nodes.raw,