summaryrefslogtreecommitdiff
path: root/docutils/test/functional
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2020-10-28 07:03:30 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2020-10-28 07:03:30 +0000
commit331edb3e115226903c6db700f705128a2c05af00 (patch)
tree093d14e2fdde00ea04ba19df9e550c65946ca0e7 /docutils/test/functional
parentf38e31debfad49d5a45df14673ad2c23a30b36ff (diff)
downloaddocutils-331edb3e115226903c6db700f705128a2c05af00.tar.gz
LaTeX writer tests: functional test stub for nested tables.
Cf. patch #175. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8570 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional')
-rw-r--r--docutils/test/functional/expected/latex_cornercases.tex59
-rw-r--r--docutils/test/functional/input/latex_cornercases.txt29
2 files changed, 88 insertions, 0 deletions
diff --git a/docutils/test/functional/expected/latex_cornercases.tex b/docutils/test/functional/expected/latex_cornercases.tex
index 2fbee6237..ce61abbfb 100644
--- a/docutils/test/functional/expected/latex_cornercases.tex
+++ b/docutils/test/functional/expected/latex_cornercases.tex
@@ -338,4 +338,63 @@ LaTeX writer needs bookkeeping to write out the required number of extra
\hline
\end{longtable*}
+
+\section{Nested tables%
+ \label{nested-tables}%
+}
+
+TODO:
+Set alignment of nested tables without creating too much vertical space.
+
+\setlength{\DUtablewidth}{\linewidth}
+\begin{longtable*}[c]{|p{0.493\DUtablewidth}|p{0.214\DUtablewidth}|}
+\hline
+
+Lorem ipsum dolor sit amet, consectetur
+ &
+adipisicing elit
+ \\
+\hline
+
+\setlength{\DUtablewidth}{\linewidth}
+\begin{tabular}[r]{|p{0.075\DUtablewidth}|p{0.075\DUtablewidth}|}
+\hline
+
+1
+ &
+2
+ \\
+\hline
+\end{tabular}
+ &
+cell 1, 2
+ \\
+\hline
+
+\setlength{\DUtablewidth}{\linewidth}
+\begin{tabular}[r]{|p{0.075\DUtablewidth}|p{0.075\DUtablewidth}|}
+\hline
+
+1
+ &
+2
+ \\
+\hline
+\end{tabular}
+
+\begin{description}
+\item[{definition:}] \leavevmode
+list
+
+\end{description}
+ &
+cell 2, 2
+ \\
+\hline
+ &
+cell 3, 2
+ \\
+\hline
+\end{longtable*}
+
\end{document}
diff --git a/docutils/test/functional/input/latex_cornercases.txt b/docutils/test/functional/input/latex_cornercases.txt
index ebb3d4d8d..311a8d2ab 100644
--- a/docutils/test/functional/input/latex_cornercases.txt
+++ b/docutils/test/functional/input/latex_cornercases.txt
@@ -136,3 +136,32 @@ LaTeX writer needs bookkeeping to write out the required number of extra
+-------+----+
| 31 | 32 |
+-------+----+
+
+Nested tables
+-------------
+
+TODO:
+Set alignment of nested tables without creating too much vertical space.
+
++-----------------------------------------+-----------------+
+| Lorem ipsum dolor sit amet, consectetur | adipisicing elit|
++-----------------------------------------+-----------------+
+| .. table:: | cell 1, 2 |
+| :align: right | |
+| | |
+| +-----+-----+ | |
+| | 1 | 2 | | |
+| +-----+-----+ | |
++-----------------------------------------+-----------------+
+| .. table:: | cell 2, 2 |
+| :align: right | |
+| | |
+| +-----+-----+ | |
+| | 1 | 2 | | |
+| +-----+-----+ | |
+| | |
+| definition: | |
+| list | |
++-----------------------------------------+-----------------+
+| | cell 3, 2 |
++-----------------------------------------+-----------------+