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