aboutsummaryrefslogtreecommitdiff
path: root/test/writer.latex
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-02-01 21:17:46 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-02-01 21:17:46 -0800
commit633a9ecfecd7a111d6727bd4c44750dbb3c9af23 (patch)
tree9992326d40d693d644d253eeb1e26a4f5bfa6089 /test/writer.latex
parentb436087bc8b59222fe031910aa85fea88cd6b1eb (diff)
downloadpandoc-633a9ecfecd7a111d6727bd4c44750dbb3c9af23.tar.gz
LaTeX writer: avoid `{}` after control sequences when escaping.
`\ldots{}.` doesn't behave as well as `\ldots.` with the latex ellipsis package. This patch causes pandoc to avoid emitting the `{}` when it is not necessary. Now `\ldots` and other control sequences used in escaping will be followed by either a `{}`, a space, or nothing, depending on context. Thanks to Elliott Slaughter for the suggestion.
Diffstat (limited to 'test/writer.latex')
-rw-r--r--test/writer.latex4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/writer.latex b/test/writer.latex
index 04ba7cd15..45723c94e 100644
--- a/test/writer.latex
+++ b/test/writer.latex
@@ -719,7 +719,7 @@ Subscripts: H\textsubscript{2}O, H\textsubscript{23}O,
H\textsubscript{many~of~them}O.
These should not be superscripts or subscripts, because of the unescaped
-spaces: a\^{}b c\^{}d, a\textasciitilde{}b c\textasciitilde{}d.
+spaces: a\^{}b c\^{}d, a\textasciitilde b c\textasciitilde d.
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
@@ -741,7 +741,7 @@ Some dashes: one---two --- three---four --- five.
Dashes between numbers: 5--7, 255--66, 1987--1999.
-Ellipses\ldots{}and\ldots{}and\ldots{}.
+Ellipses\ldots and\ldots and\ldots.
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}