I am trying to span a row over two rows in a tabularx table with the following:
\begin{table}[h] \caption{Table caption} \hfill \begin{tabularx}{\linewidth}{|X|X|X|X|} \hline \\ \textbf{Column1} & \textbf{Column2} & \textbf{Column3} & \textbf{Column4} \\ \hline Row1 & Text1 & \multirow{2}{*}{Spanning text that may need to be wrapped in the column} & 500 \\ \hline Row2 & Text2 & & 500\\ \hline Row3 & Text3 & SomeOtherText & MoreText \\ \hline \end{tabularx}\end{table}
However currently getting:Image may be NSFW.
Clik here to view.
- The spanning text is overflowing
- A horizontal line is being drawn between the spanning cells
- Something strange with the lines around "Column2", "Column3", "Column4"
(compiling with pdflatex
)
What is the simplest way to fix this...?