pandoc/test/command/2874.md
John MacFarlane ee160d7c4c LaTeX writer: fix error with line breaks after empty content.
LaTeX requires something before a line break, so we insert a
`~` if no printable content has yet been emitted.

Closes #2874.
2017-04-25 15:00:27 +02:00

14 lines
152 B
Markdown

```
% pandoc -f html -t latex
<a></a>
<br/>
^D
{}~\\
```
```
% pandoc -f html -t latex
<a name="foo"></a><br/>
^D
\protect\hypertarget{foo}{}{}~\\
```