diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-04-25 15:00:27 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-04-25 15:00:27 +0200 |
commit | ee160d7c4cc912554fe0a1c7ff9fb802e9e72b64 (patch) | |
tree | 15ddf53bba3fab8274582f64887860ca69cdd924 /test | |
parent | d17f0dab841fdda322853c175563792bde50fca2 (diff) |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/2874.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command/2874.md b/test/command/2874.md new file mode 100644 index 000000000..1fb530dc1 --- /dev/null +++ b/test/command/2874.md @@ -0,0 +1,14 @@ +``` +% pandoc -f html -t latex +<a></a> +<br/> +^D +{}~\\ +``` + +``` +% pandoc -f html -t latex +<a name="foo"></a><br/> +^D +\protect\hypertarget{foo}{}{}~\\ +``` |