summaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-11-19 12:17:46 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2022-11-19 12:28:41 -0800
commit144bf90ab92b517dd721baf80f121f86187ccd61 (patch)
tree4f3616e8b11dce2e6f4191ae22eaf89842fa146f /test/Tests
parent202eacb6860967e6c74e8bc73eb8a4a677748243 (diff)
LaTeX writer: Use soul instead of ulem for strikeout, underline.
This handles things like hyphenation, line breaks, and nonbreaking spaces better. Closes #8411.
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Writers/LaTeX.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Tests/Writers/LaTeX.hs b/test/Tests/Writers/LaTeX.hs
index 3496fccbc..35693d478 100644
--- a/test/Tests/Writers/LaTeX.hs
+++ b/test/Tests/Writers/LaTeX.hs
@@ -76,11 +76,11 @@ tests = [ testGroup "code blocks"
[ "struck out and highlighted" =:
strikeout (codeWith ("",["haskell"],[]) "foo" <> space
<> str "bar") =?>
- "\\sout{\\mbox{\\VERB|\\NormalTok{foo}|} bar}"
+ "\\st{\\mbox{\\VERB|\\NormalTok{foo}|} bar}"
, "struck out and not highlighted" =:
strikeout (code "foo" <> space
<> str "bar") =?>
- "\\sout{\\mbox{\\texttt{foo}} bar}"
+ "\\st{\\mbox{\\texttt{foo}} bar}"
, "single quotes" =:
code "dog's" =?> "\\texttt{dog\\textquotesingle{}s}"
, "backtick" =: