From 3743199576fd1eb9fc34f7967d3d64076dd0b448 Mon Sep 17 00:00:00 2001 From: jfbu Date: Fri, 3 Mar 2017 10:04:17 +0100 Subject: [PATCH] Remove frame around LaTeX longtable's "Continued on next page" footer refs: PR #3497 --- CHANGES | 1 + sphinx/templates/latex/longtable.tex_t | 3 +-- tests/test_build_latex.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index f1f67f2ac..40692e558 100644 --- a/CHANGES +++ b/CHANGES @@ -25,6 +25,7 @@ Incompatible changes * :confval:`latex_keep_old_macro_names` default value has been changed from ``True`` to ``False``. This means that some LaTeX macros for styling are by default defined only with ``\sphinx..`` prefixed names. (refs: #3429) +* Footer "Continued on next page" of LaTeX longtable's now not framed (refs: #3497) Features removed ---------------- diff --git a/sphinx/templates/latex/longtable.tex_t b/sphinx/templates/latex/longtable.tex_t index aca3091f8..e14dd0836 100644 --- a/sphinx/templates/latex/longtable.tex_t +++ b/sphinx/templates/latex/longtable.tex_t @@ -21,8 +21,7 @@ \endhead \hline -\multicolumn{<%= table.colcount %>}{|r|}{\makebox[0pt][r]{\sphinxtablecontinued{<%= _('Continued on next page') %>}}}\\ -\hline +\multicolumn{<%= table.colcount %>}{r}{\makebox[0pt][r]{\sphinxtablecontinued{<%= _('Continued on next page') %>}}}\\ \endfoot \endlastfoot diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index 2084254c0..5e94722b2 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -924,9 +924,9 @@ def test_latex_table_longtable(app, status, warning): '\\sphinxstylethead{\\relax \nheader1\n\\unskip}\\relax &' '\\sphinxstylethead{\\relax \nheader2\n\\unskip}\\relax \\\\\n' '\\hline\n\\endhead' in table) - assert ('\\hline\n\\multicolumn{2}{|r|}' + assert ('\\hline\n\\multicolumn{2}{r}' '{\\makebox[0pt][r]{\\sphinxtablecontinued{Continued on next page}}}\\\\\n' - '\\hline\n\\endfoot\n\n\\endlastfoot' in table) + '\\endfoot\n\n\\endlastfoot' in table) assert ('\ncell1-1\n&\ncell1-2\n\\\\' in table) assert ('\\hline\ncell2-1\n&\ncell2-2\n\\\\' in table) assert ('\\hline\ncell3-1\n&\ncell3-2\n\\\\' in table)