diff options
| author | mmuraki <devnull@localhost> | 2013-11-13 15:03:50 +0900 |
|---|---|---|
| committer | mmuraki <devnull@localhost> | 2013-11-13 15:03:50 +0900 |
| commit | d455490e0c7cd61e3abe9aa977dc0fe5bd9e827c (patch) | |
| tree | e91702a30194808dbf2520f8b11c09b95114dac9 | |
| parent | ecdf03ae3a131c3de5d4e407a62b7433e594d192 (diff) | |
| download | sphinx-d455490e0c7cd61e3abe9aa977dc0fe5bd9e827c.tar.gz | |
Add lost latex table horizontal border-line.
| -rw-r--r-- | sphinx/writers/latex.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 80080752..e29125c9 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -751,7 +751,7 @@ class LaTeXTranslator(nodes.NodeVisitor): 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 @@ -759,6 +759,8 @@ class LaTeXTranslator(nodes.NodeVisitor): if self.previous_spanning_row == 1: self.previous_spanning_row = 0 self.body.append('\\\\\n') + if self.table.rowcount > 0: + self.body.append('\\hline') self.table.rowcount += 1 def visit_entry(self, node): |
