This commit is contained in:
Georg Brandl 2014-03-01 08:08:11 +01:00
commit de1636ea6e
2 changed files with 17 additions and 2 deletions

14
sphinx/__main__.py Normal file
View File

@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
"""
Sphinx
~~~~~~
The Sphinx documentation toolchain.
:copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import sys
from sphinx import main
sys.exit(main(sys.argv))

5
sphinx/writers/latex.py Normal file → Executable file
View File

@ -742,14 +742,14 @@ class LaTeXTranslator(nodes.NodeVisitor):
# Redirect head output until header is finished. see visit_tbody.
self.body = self.tableheaders
def depart_thead(self, node):
self.body.append('\\hline')
pass
def visit_tbody(self, node):
if not self.table.had_head:
self.visit_thead(node)
self.body = self.tablebody
def depart_tbody(self, node):
self.body.append('\\hline')
pass
def visit_row(self, node):
self.table.col = 0
@ -757,6 +757,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
if self.previous_spanning_row == 1:
self.previous_spanning_row = 0
self.body.append('\\\\\n')
self.body.append('\\hline')
self.table.rowcount += 1
def visit_entry(self, node):