mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge
This commit is contained in:
commit
de1636ea6e
14
sphinx/__main__.py
Normal file
14
sphinx/__main__.py
Normal 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
5
sphinx/writers/latex.py
Normal file → Executable 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):
|
||||
|
Loading…
Reference in New Issue
Block a user