Commits

Anonymous committed 5ab715c

More cases where we do not want to "educate" quotes.

  • Participants
  • Parent commits 33140e6

Comments (0)

Files changed (1)

File docutils/docutils/transforms/universal.py

             return
         for node in self.document.traverse(nodes.Text):
             if isinstance(node.parent,
-                          (nodes.FixedTextElement, nodes.literal)):
+                          (nodes.FixedTextElement,
+                           nodes.literal,
+                           nodes.Special,
+                           nodes.option_string
+                          )):
                 # print "literal", node
                 continue
             newtext = smartquotes.smartyPants(node.astext(), attr='2')