mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
2b2652056b
commit
f99fe20e50
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user