LaTeX writer: handle line breaks in simple table cells.

Closes #1217.