Commits

Georg Brandl committed a3ae47a

#29: Don't generate visible "-{-}" in option lists in LaTeX.

Comments (0)

Files changed (3)

 Release 0.6.2 (in development)
 ==============================
 
+* #29: Don't generate visible "-{-}" in option lists in LaTeX.
+
 * Fix cross-reference roles when put into substitutions.
 
 * Don't put image "alt" text into table-of-contents entries.
 Examples for document names are ``index``, ``library/zipfile``, or
 ``reference/datamodel/types``.  Note that there is no leading slash.
 
+--option           Option.
+--very-long        Opitomn.
+
 
 The TOC tree
 ------------

sphinx/writers/latex.py

 
     def visit_option_string(self, node):
         ostring = node.astext()
-        self.body.append(self.encode(ostring.replace('--', u'-{-}')))
+        self.no_contractions += 1
+        self.body.append(self.encode(ostring))
+        self.no_contractions -= 1
         raise nodes.SkipNode
 
     def visit_description(self, node):