From ee160d7c4cc912554fe0a1c7ff9fb802e9e72b64 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 25 Apr 2017 15:00:27 +0200 Subject: 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. --- test/command/2874.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/command/2874.md (limited to 'test') 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 + +
+^D +{}~\\ +``` + +``` +% pandoc -f html -t latex +
+^D +\protect\hypertarget{foo}{}{}~\\ +``` -- cgit v1.2.3