@@ -334,15 +334,14 @@ extentToAttr _ = nullAttr
335blocksToInlinesWarn :: PandocMonad m => T.Text -> Blocks -> DocxContext m Inlines
335blocksToInlinesWarn :: PandocMonad m => T.Text -> Blocks -> DocxContext m Inlines
336blocksToInlinesWarn cmtId blks = do
336blocksToInlinesWarn cmtId blks = do
337− let blkList = toList blks
338− paraOrPlain :: Block -> Bool
337+ let paraOrPlain :: Block -> Bool
339 paraOrPlain (Para _) = True
338 paraOrPlain (Para _) = True
340 paraOrPlain (Plain _) = True
339 paraOrPlain (Plain _) = True
341 paraOrPlain _ = False
340 paraOrPlain _ = False
342− unless (all paraOrPlain blkList) $
341+ unless (all paraOrPlain blks) $
343 lift $ P.report $ DocxParserWarning $
342 lift $ P.report $ DocxParserWarning $
344 "Docx comment " <> cmtId <> " will not retain formatting"
343 "Docx comment " <> cmtId <> " will not retain formatting"
345− return $ blocksToInlines' blkList
344+ return $ blocksToInlines' (toList blks)
347-- The majority of work in this function is done in the primed
346-- The majority of work in this function is done in the primed
348-- subfunction `partPartToInlines'`. We make this wrapper so that we
347-- subfunction `partPartToInlines'`. We make this wrapper so that we