1. Georg Brandl
  2. sphinx

Commits

Georg Brandl  committed a3ae47a

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

  • Participants
  • Parent commits 5c5a846
  • Branches default

Comments (0)

Files changed (3)

File CHANGES

View file
 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.

File doc/concepts.rst

View file
 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
 ------------

File sphinx/writers/latex.py

View file
 
     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):