diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-01-09 08:36:04 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-01-09 08:36:24 -0800 |
commit | 7e481d73cf4889551278fc7f72a3c8f1178445e4 (patch) | |
tree | 4705605baa655abea1abc0f02f12fde96a1b62bb /src/Text/Pandoc | |
parent | 253f342a80028c7a0fe8d67115c4549cf5fc7d42 (diff) | |
download | pandoc-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.hs | 4 |
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 |