1. Wojtek Walczak
  2. sphinx-gsoc2009

Commits

Georg Brandl  committed 47aec24 Merge

merge with 0.6

  • Participants
  • Parent commits 928093a, 790c066
  • Branches default

Comments (0)

Files changed (3)

File CHANGES

View file
  • Ignore whitespace
 Release 0.6.3 (in development)
 ==============================
 
+* #201: Make ``centered`` directive work in LaTeX output.
+
 * #206: Refuse to overwrite an existing master document in
   sphinx-quickstart.
 

File sphinx/ext/graphviz.py

View file
  • Ignore whitespace
 
     if hasattr(self.builder, '_graphviz_warned_dot') or \
        hasattr(self.builder, '_graphviz_warned_ps2pdf'):
-        return None
+        return None, None
 
     ensuredir(path.dirname(outfn))
 
                           'output), check the graphviz_dot setting' %
                           self.builder.config.graphviz_dot)
         self.builder._graphviz_warned_dot = True
-        return None
+        return None, None
     # graphviz expects UTF-8 by default
     if isinstance(code, unicode):
         code = code.encode('utf-8')

File sphinx/writers/latex.py

View file
  • Ignore whitespace
         self.body.append('\n')
 
     def visit_centered(self, node):
-        self.body.append('\n\\begin{centering}')
+        self.body.append('\n\\begin{center}')
     def depart_centered(self, node):
-        self.body.append('\n\\end{centering}')
+        self.body.append('\n\\end{center}')
 
     def visit_hlist(self, node):
         # for now, we don't support a more compact list format