aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/DocBook.hs
diff options
context:
space:
mode:
authorJoseph C. Sible <josephcsible@users.noreply.github.com>2020-03-30 00:11:05 -0400
committerGitHub <noreply@github.com>2020-03-29 21:11:05 -0700
commit377efd0ce7736685c2a43842743a11ae01ed0a0b (patch)
treefdb71f111bce17b9e8a5556c0f89739ac35eec16 /src/Text/Pandoc/Readers/DocBook.hs
parent40fd20d43fc2431e411554c138cb6e7d15654917 (diff)
downloadpandoc-377efd0ce7736685c2a43842743a11ae01ed0a0b.tar.gz
Clean up some fmaps (#6226)
* Avoid fmapping when we're just binding right after anyway * Clean up unnecessary fmaps in the LaTeX reader
Diffstat (limited to 'src/Text/Pandoc/Readers/DocBook.hs')
-rw-r--r--src/Text/Pandoc/Readers/DocBook.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs
index 4bc5312d6..7f71cb3c1 100644
--- a/src/Text/Pandoc/Readers/DocBook.hs
+++ b/src/Text/Pandoc/Readers/DocBook.hs
@@ -758,8 +758,8 @@ parseBlock (Elem e) =
"upperroman" -> UpperRoman
_ -> Decimal
let start = fromMaybe 1 $
- (attrValue "override" <$> filterElement (named "listitem") e)
- >>= safeRead
+ filterElement (named "listitem") e
+ >>= safeRead . attrValue "override"
orderedListWith (start,listStyle,DefaultDelim)
<$> listitems
"variablelist" -> definitionList <$> deflistitems