pandoc/test/command/7272.md
John MacFarlane ed3974a254 LaTeX writer: always use a minipage for cells with line breaks...
if width information is available.  Otherwise the way we treat them can
lead to content that overflows a cell.

Closes #7393.
2021-06-21 18:25:36 -07:00

427 B

% pandoc -t latex -f html
<table>
  <tbody>
    <tr>
      <td>
        <span>
          text
          <br />
          text2
        </span>
      </td>
    </tr>
  </tbody>
</table>
^D
\begin{longtable}[]{@{}
  >{\raggedright\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{1.00}}@{}}
\toprule
\endhead
\begin{minipage}[t]{\linewidth}\raggedright
{ text\\
text2 }
\end{minipage} \\
\bottomrule
\end{longtable}