LaTeX writer:  Handle consecutive linebreaks.

Closes #1733.