[Python-modules-commits] r27980 - in packages/sphinx/trunk/debian (3 files)

mitya57-guest at users.alioth.debian.org mitya57-guest at users.alioth.debian.org
Sat Mar 1 10:29:29 UTC 2014


    Date: Saturday, March 1, 2014 @ 10:29:28
  Author: mitya57-guest
Revision: 27980

Backport upstream patch to fix writing table hlines in LaTeX writer
(closes: #732585).

Added:
  packages/sphinx/trunk/debian/patches/fix_latex_hlines.diff
Modified:
  packages/sphinx/trunk/debian/changelog
  packages/sphinx/trunk/debian/patches/series

Modified: packages/sphinx/trunk/debian/changelog
===================================================================
--- packages/sphinx/trunk/debian/changelog	2014-02-28 22:24:26 UTC (rev 27979)
+++ packages/sphinx/trunk/debian/changelog	2014-03-01 10:29:28 UTC (rev 27980)
@@ -1,6 +1,8 @@
 sphinx (1.2.1+dfsg-4) UNRELEASED; urgency=low
 
   * Bump debhelper compatibility level to 9.
+  * Backport upstream patch to fix writing table hlines in LaTeX writer
+    (closes: #732585).
 
  -- Dmitry Shachnev <mitya57 at gmail.com>  Sun, 23 Feb 2014 15:37:34 +0400
 

Added: packages/sphinx/trunk/debian/patches/fix_latex_hlines.diff
===================================================================
--- packages/sphinx/trunk/debian/patches/fix_latex_hlines.diff	                        (rev 0)
+++ packages/sphinx/trunk/debian/patches/fix_latex_hlines.diff	2014-03-01 10:29:28 UTC (rev 27980)
@@ -0,0 +1,32 @@
+Description: fix writing table hlines in latex writer
+Origin: upstream, https://bitbucket.org/birkenfeld/sphinx/commits/91597cc54b0b2e
+Bug-Debian: https://bugs.debian.org/732585
+Last-Update: 2014-03-01
+
+--- a/sphinx/writers/latex.py
++++ b/sphinx/writers/latex.py
+@@ -743,14 +743,14 @@
+         # 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
+@@ -758,6 +758,7 @@
+         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):

Modified: packages/sphinx/trunk/debian/patches/series
===================================================================
--- packages/sphinx/trunk/debian/patches/series	2014-02-28 22:24:26 UTC (rev 27979)
+++ packages/sphinx/trunk/debian/patches/series	2014-03-01 10:29:28 UTC (rev 27980)
@@ -5,3 +5,4 @@
 parallel_2to3.diff
 no_external_css.diff
 html_logo_path_fix.diff
+fix_latex_hlines.diff




More information about the Python-modules-commits mailing list