aboutsummaryrefslogtreecommitdiff
path: root/test/command/2874.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-04-25 15:00:27 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-04-25 15:00:27 +0200
commitee160d7c4cc912554fe0a1c7ff9fb802e9e72b64 (patch)
tree15ddf53bba3fab8274582f64887860ca69cdd924 /test/command/2874.md
parentd17f0dab841fdda322853c175563792bde50fca2 (diff)
downloadpandoc-ee160d7c4cc912554fe0a1c7ff9fb802e9e72b64.tar.gz
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/command/2874.md')
-rw-r--r--test/command/2874.md14
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}{}{}~\\
+```