My multirow cell content overflows table height if it is higher than the combined height of spanned rows. Is this normal behaviour?
\documentclass{article}
\usepackage{multirow,longtable}
\begin{document}
\begin{longtable}{|p{20mm}|p{20mm}|}
\hline
A & B
\\\hline
\multirow{2}{20mm}{\parbox{18mm}{AB\linebreak BC \linebreak CD \linebreak EF}}
& X, then Y
\\\cline{2-2}
& Y, then Z
\\\hline
\end{longtable}
\end{document}
If it is, how do I obtain HTML-table-like behaviour to fit the contents inside? There's actually a lot of paragraph text in all cells except the headers.
multirow
cel had to be equal or less than number lines in other columns. you can solve your problem on the way that cells in second row make higher.multirow
you need always to count number of lines, there for some additional effort to add missing space in other columns should not be a big deal :). I believe, that this will make you a lot of pain ...