Commits

Georg Brandl committed d23adf1

Prevent double hyphens becoming en-dashes in literal code in the LaTeX output.

  • Participants
  • Parent commits b1cebf5

Comments (0)

Files changed (2)

 Release 0.5.2 (in development)
 ==============================
 
+* Prevent double hyphens becoming en-dashes in literal code in
+  the LaTeX output.
+
 * Open literalinclude files in universal newline mode to allow
   arbitrary newline conventions.
 

sphinx/latexwriter.py

         raise nodes.SkipNode
 
     def visit_literal(self, node):
+        self.no_contractions += 1
         content = self.encode(node.astext().strip())
+        self.no_contractions -= 1
         if self.in_title:
             self.body.append(r'\texttt{%s}' % content)
         elif node.has_key('role') and node['role'] == 'samp':