[Tex/LaTex] Table caption problem. Text goes new line every word

captionstables

I've a strange problem with caption of table. The text is shrinked to the center (see picture). This is the code of the table in the example (the result is the same for all the table I made).

\begin{table}
  \begin{center}
  \begin{tabular}{ |l|l| p{8cm}| }
\hline
 \textbf{Test}  & \textbf{test} & \textbf{test} \\
\hline
& test & test. \\ 
\hline
\end{tabular}
\end{center}
\caption{This is the description}
\label{tab:xyz}
\end{table}

this is my import list

\usepackage[ruled]{algorithm2e}
\usepackage{graphicx}
\usepackage{paralist}
\usepackage{acronym}
\usepackage{xspace}
\usepackage{color}
\usepackage{url}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{import}

Any idea how to solve it?

caption error

edit:
this is the MWE:

\documentclass[prodmode,acmtoit]{acmsmall} 
\usepackage{multirow}

\begin{document}
\begin{table}
      \begin{center}
      \begin{tabular}{ |l|l| p{8cm}| }
    \hline
     \textbf{Test}  & \textbf{test} & \textbf{test} \\
    \hline
    & test & test. \\ 
    \hline
    \end{tabular}
    \end{center}
    \caption{This is the description}
    \label{tab:xyz}
    \end{table}
\end{document}

the problem seems to be with the style of the document, which can be downloaded here

Best Answer

Apparently, the acmsmall class requires this syntax for the table environment:

\begin{table}
\tbl{<caption text>\label{<label>}{<table material>}
\end{table}

The reason for this is to measure the <table material> beforehand and adapt the caption width to it. See section 4.2 of the guide.

So you should type

\begin{table}
\tbl{This is the description\label{tab:xyz}}{%
  \begin{tabular}{ |l|l| p{8cm}| }
  \hline
  \textbf{Test}  & \textbf{test} & \textbf{test} \\
  \hline
  & test & test. \\
  \hline
  \end{tabular}}
\end{table}

enter image description here