From 26757b1157aea77fc2c8a0cd8107d41a0d2c1206 Mon Sep 17 00:00:00 2001 From: milde Date: Tue, 30 May 2017 21:08:07 +0000 Subject: [PATCH] SmartQuotes transform: the "literal" nodes must be stored as tupel. Nodes are checked against the list with "isinstance", which requires tuples and fails with lists. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8096 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/transforms/universal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docutils/transforms/universal.py b/docutils/transforms/universal.py index 8aabaeea7..07ea12c66 100644 --- a/docutils/transforms/universal.py +++ b/docutils/transforms/universal.py @@ -218,11 +218,11 @@ class SmartQuotes(Transform): default_priority = 850 - nodes_to_skip = [nodes.FixedTextElement, nodes.Special] + nodes_to_skip = (nodes.FixedTextElement, nodes.Special) """Do not apply "smartquotes" to instances of these block-level nodes.""" - literal_nodes = [nodes.image, nodes.literal, nodes.math, - nodes.raw, nodes.problematic] + literal_nodes = (nodes.image, nodes.literal, nodes.math, + nodes.raw, nodes.problematic) """Do not change quotes in instances of these inline nodes.""" smartquotes_action = 'qDe' -- 2.11.4.GIT