This commit is contained in:
jfbu 2017-02-28 08:13:37 +01:00
parent f282647e17
commit 3e3d97ff9c

View File

@ -919,13 +919,13 @@ def test_latex_table_longtable(app, status, warning):
'\\sphinxstylethead{\\relax \nheader2\n\\unskip}\\relax \\\\\n' '\\sphinxstylethead{\\relax \nheader2\n\\unskip}\\relax \\\\\n'
'\\hline\n\\endfirsthead' in table) '\\hline\n\\endfirsthead' in table)
assert ('\\multicolumn{2}{c}%\n' assert ('\\multicolumn{2}{c}%\n'
'{{\\tablecontinued{\\tablename\\ \\thetable{} -- ' '{{\\sphinxtablecontinued{\\tablename\\ \\thetable{} -- '
'continued from previous page}}} \\\\\n\\hline\n' 'continued from previous page}}} \\\\\n\\hline\n'
'\\sphinxstylethead{\\relax \nheader1\n\\unskip}\\relax &' '\\sphinxstylethead{\\relax \nheader1\n\\unskip}\\relax &'
'\\sphinxstylethead{\\relax \nheader2\n\\unskip}\\relax \\\\\n' '\\sphinxstylethead{\\relax \nheader2\n\\unskip}\\relax \\\\\n'
'\\hline\n\\endhead' in table) '\\hline\n\\endhead' in table)
assert ('\\hline\n\\multicolumn{2}{|r|}' assert ('\\hline\n\\multicolumn{2}{|r|}'
'{{\\tablecontinued{Continued on next page}}} \\\\\n' '{{\\sphinxtablecontinued{Continued on next page}}} \\\\\n'
'\\hline\n\\endfoot\n\n\\endlastfoot' in table) '\\hline\n\\endfoot\n\n\\endlastfoot' in table)
assert ('\ncell1-1\n&\ncell1-2\n\\\\' in table) assert ('\ncell1-1\n&\ncell1-2\n\\\\' in table)
assert ('\\hline\ncell2-1\n&\ncell2-2\n\\\\' in table) assert ('\\hline\ncell2-1\n&\ncell2-2\n\\\\' in table)