aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-01-09 08:36:04 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-01-09 08:36:24 -0800
commit7e481d73cf4889551278fc7f72a3c8f1178445e4 (patch)
tree4705605baa655abea1abc0f02f12fde96a1b62bb /src/Text/Pandoc
parent253f342a80028c7a0fe8d67115c4549cf5fc7d42 (diff)
downloadpandoc-7e481d73cf4889551278fc7f72a3c8f1178445e4.tar.gz
Beamer writer: avoid duplicated `fragile` property in some cases.
Closes #5208.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 7441152a6..0b539d553 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -471,7 +471,9 @@ elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts)
"b", "c", "t", "environment",
"label", "plain", "shrink", "standout",
"noframenumbering"]
- let optionslist = ["fragile" | fragile && isNothing (lookup "fragile" kvs)] ++
+ let optionslist = ["fragile" | fragile
+ , isNothing (lookup "fragile" kvs)
+ , "fragile" `notElem` classes] ++
[k | k <- classes, k `elem` frameoptions] ++
[k ++ "=" ++ v | (k,v) <- kvs, k `elem` frameoptions]
let options = if null optionslist