aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-01-28 09:52:45 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-28 09:52:45 +0100
commitd2e0592e0174d4890ef0971bd4d47bbb45a98c3a (patch)
treebc4a1692ec70e411a4816060fc97a5b3a7bdd9d4 /tests
parent91cdcc796df3db290d1930b159eb3ee2f74d4c03 (diff)
downloadpandoc-d2e0592e0174d4890ef0971bd4d47bbb45a98c3a.tar.gz
LaTeX writer: export writeBeamer.
Removed writerBeamer from WriterOptions.
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Writers/LaTeX.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs
index 00c590370..f54aef4dc 100644
--- a/tests/Tests/Writers/LaTeX.hs
+++ b/tests/Tests/Writers/LaTeX.hs
@@ -16,6 +16,9 @@ latexListing = latexWithOpts def{ writerListings = True }
latexWithOpts :: (ToPandoc a) => WriterOptions -> a -> String
latexWithOpts opts = purely (writeLaTeX opts) . toPandoc
+beamerWithOpts :: (ToPandoc a) => WriterOptions -> a -> String
+beamerWithOpts opts = purely (writeBeamer opts) . toPandoc
+
{-
"my test" =: X =?> Y
@@ -95,8 +98,7 @@ tests = [ testGroup "code blocks"
beamerTopLevelDiv :: (ToPandoc a)
=> TopLevelDivision -> a -> String
beamerTopLevelDiv division =
- latexWithOpts def { writerTopLevelDivision = division
- , writerBeamer = True }
+ beamerWithOpts def { writerTopLevelDivision = division }
in
[ test (latexTopLevelDiv TopLevelSection)
"sections as top-level" $ headers =?>