diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-01-28 09:52:45 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-28 09:52:45 +0100 |
commit | d2e0592e0174d4890ef0971bd4d47bbb45a98c3a (patch) | |
tree | bc4a1692ec70e411a4816060fc97a5b3a7bdd9d4 /tests | |
parent | 91cdcc796df3db290d1930b159eb3ee2f74d4c03 (diff) | |
download | pandoc-d2e0592e0174d4890ef0971bd4d47bbb45a98c3a.tar.gz |
LaTeX writer: export writeBeamer.
Removed writerBeamer from WriterOptions.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Tests/Writers/LaTeX.hs | 6 |
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 =?> |