summaryrefslogtreecommitdiff
path: root/tests/Tests/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-06-23 12:51:10 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-06-23 12:51:10 -0700
commit87ab01637e1dc0f583277828bc458567a72e38ce (patch)
treebaf707a86bd75d1d118c56a4fa9298d4a60ad204 /tests/Tests/Writers
parente03ed7377cfd3d64d65f186aa76b17417a4e4fde (diff)
LaTeX writer: Use `\textquotesingle` for `'` in inline code.
Otherwise we get curly quotes in the PDF output. Closes #1364.
Diffstat (limited to 'tests/Tests/Writers')
-rw-r--r--tests/Tests/Writers/LaTeX.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs
index 6db6542a0..c32ded36d 100644
--- a/tests/Tests/Writers/LaTeX.hs
+++ b/tests/Tests/Writers/LaTeX.hs
@@ -63,5 +63,7 @@ tests = [ testGroup "code blocks"
strikeout (code "foo" <> space
<> str "bar") =?>
"\\sout{\\texttt{foo} bar}"
+ , "single quotes" =:
+ code "dog's" =?> "\\texttt{dog\\textquotesingle{}s}"
]
]