Commits

Georg Brandl committed 790c066

#201: Make ``centered`` directive work in LaTeX output.

  • Participants
  • Parent commits 1b41300

Comments (0)

Files changed (2)

 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.
 

sphinx/writers/latex.py

         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