aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJoseph C. Sible <josephcsible@users.noreply.github.com>2020-02-08 12:09:33 -0500
committerGitHub <noreply@github.com>2020-02-08 09:09:33 -0800
commit02ff42b1783303f9f4cdd160ff0c9ff04a297126 (patch)
tree73529f929df080c8a0641b39d2bc99754e024818 /src/Text/Pandoc/Readers
parent4c3db9273fc8e92c2c23d4455a6ab178472be06d (diff)
downloadpandoc-02ff42b1783303f9f4cdd160ff0c9ff04a297126.tar.gz
More cleanup (#6130)
* Use an infix operator normally instead of immediately applying an operator section * Use M.fromList
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/EPUB.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/EPUB.hs b/src/Text/Pandoc/Readers/EPUB.hs
index f7a7de896..851d20187 100644
--- a/src/Text/Pandoc/Readers/EPUB.hs
+++ b/src/Text/Pandoc/Readers/EPUB.hs
@@ -170,7 +170,7 @@ parseMeta content = do
let coverId = findAttr (emptyName "content") =<< filterChild findCover meta
return (coverId, r)
where
- findCover e = (== Just "cover") (findAttr (emptyName "name") e)
+ findCover e = findAttr (emptyName "name") e == Just "cover"
-- http://www.idpf.org/epub/30/spec/epub30-publications.html#sec-metadata-elem
parseMetaItem :: Element -> Meta -> Meta