MWE
\documentclass[a4paper,11pt]{article}
\usepackage{multirow}
\usepackage{array}
\begin{document}
\begin{tabular}{|>{\centering\arraybackslash}m{2cm}
|>{\centering\arraybackslash}m{2.4cm}|}\hline
X & Y \\ \hline
\multirow{2}{*}{No problem} & One Line \\ \cline{2-1}
& Two Line \\ \hline
\multirow{5}{*}{Problem} & One Line \\ \cline{2-1}
& 1 \newline 2 \newline 3 \newline 4\\ \hline
\end{tabular}
\end{document}
and displaying
.
Only last row (4) is centered. 1, 2, and 3 not center. Does anyone know how to fix it?
Best Answer
Here you are:
\hfil
corrects additional horizontal space added by\newline
,\null
is a horizontal box with zero width.