aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-11-23 23:07:56 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-11-23 23:07:56 -0800
commit2633dc2f5e6bb86e349fa2f2f7292d497f255a8d (patch)
treee34fe8e51f441cc05ca2632204cbddd0d5b1cb35 /src/Text
parentb20ecbedc4e09a40aa42fe4e505c0cd097f23ee7 (diff)
downloadpandoc-2633dc2f5e6bb86e349fa2f2f7292d497f255a8d.tar.gz
Beamer writer: mark frame as fragile when it contains verbatim.
Closes #1613.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 9e15e0be7..fc069cfcf 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -329,12 +329,8 @@ elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts)
hasCodeBlock _ = []
let hasCode (Code _ _) = [True]
hasCode _ = []
- opts <- gets stOptions
let fragile = "fragile" `elem` classes ||
- not (null $ query hasCodeBlock elts ++
- if writerListings opts
- then query hasCode elts
- else [])
+ not (null $ query hasCodeBlock elts ++ query hasCode elts)
let frameoptions = ["allowdisplaybreaks", "allowframebreaks",
"b", "c", "t", "environment",
"label", "plain", "shrink"]