git.iko.soy/typeable/pandoc
on master help sign in
Beamer writer: avoid duplicated `fragile` property in some cases.

Closes #5208.

commit7e481d73cf4889551278fc7f72a3c8f1178445e4 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 9 Jan 2019, 08:36 (8 years ago) parent253f342
1 file changed+3−1
src/Text/Pandoc/Writers/LaTeX.hs+3−1
src/Text/Pandoc/Writers/LaTeX.hs+3−1
@@ -471,7 +471,9 @@ elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts)
471471 "b", "c", "t", "environment",
472472 "label", "plain", "shrink", "standout",
473473 "noframenumbering"]
474− let optionslist = ["fragile" | fragile && isNothing (lookup "fragile" kvs)] ++
474+ let optionslist = ["fragile" | fragile
475+ , isNothing (lookup "fragile" kvs)
476+ , "fragile" `notElem` classes] ++
475477 [k | k <- classes, k `elem` frameoptions] ++
476478 [k ++ "=" ++ v | (k,v) <- kvs, k `elem` frameoptions]
477479 let options = if null optionslist