summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-02-21 20:44:25 +0000
committergrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-02-21 20:44:25 +0000
commit1663f13c6f3544ef062d996b28882edc9908ca3a (patch)
tree874b512089e84e217d10b169076b6446e5230dab
parentcbb959956a9288062d7cc78b8184c0390b3348e7 (diff)
downloaddocutils-1663f13c6f3544ef062d996b28882edc9908ca3a.tar.gz
docutils-Bugs-3594442 : complex table formatting error
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7616 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--test/functional/expected/standalone_rst_latex.tex41
-rw-r--r--test/functional/input/data/tables_latex.txt13
2 files changed, 54 insertions, 0 deletions
diff --git a/test/functional/expected/standalone_rst_latex.tex b/test/functional/expected/standalone_rst_latex.tex
index 767db1c30..dc3e0e60b 100644
--- a/test/functional/expected/standalone_rst_latex.tex
+++ b/test/functional/expected/standalone_rst_latex.tex
@@ -1776,6 +1776,47 @@ Short multicolumn 4
\hline
\end{longtable*}
+A table with multirow header
+%
+\begin{quote}
+
+\setlength{\DUtablewidth}{\linewidth}
+\begin{longtable*}[c]{|p{0.156\DUtablewidth}|p{0.238\DUtablewidth}|}
+\hline
+\multirow{2}{0.16\DUtablewidth}{%\textbf{%
+XXX
+}} & \textbf{%
+Variable Summary
+} \\
+\cline{2-2}
+ & \textbf{%
+Description
+} \\
+\hline
+\endfirsthead
+\hline
+\multirow{2}{0.16\DUtablewidth}{%\textbf{%
+XXX
+}} & \textbf{%
+Variable Summary
+} \\
+\cline{2-2}
+ & \textbf{%
+Description
+} \\
+\hline
+\endhead
+\multicolumn{2}{c}{\hfill ... continued on next page} \\
+\endfoot
+\endlastfoot
+\multicolumn{2}{|p{0.39\DUtablewidth}|}{
+multirow header breaks latex
+} \\
+\hline
+\end{longtable*}
+
+\end{quote}
+
% This file is used by the standalone_rst_latex test.
diff --git a/test/functional/input/data/tables_latex.txt b/test/functional/input/data/tables_latex.txt
index 8e74b438c..f0e0179b5 100644
--- a/test/functional/input/data/tables_latex.txt
+++ b/test/functional/input/data/tables_latex.txt
@@ -18,3 +18,16 @@ A multicolumn table with multi-paragraph rowspanning cells:
+----------+--------------+--------------+--------+---------+-----------+
| cell | cell | cell | Short multicolumn 4 |
+----------+--------------+--------------+------------------------------+
+
+A table with multirow header
+
+
+ +------------+-------------------+
+ | XXX | Variable Summary |
+ | +-------------------+
+ | | Description |
+ +============+===================+
+ | multirow header breaks latex |
+ +--------------------------------+
+
+