Minor renaming to avoid shadowing.

This commit is contained in:
John MacFarlane 2021-09-04 10:02:08 -07:00
parent 481ff8ac44
commit aaef51707c

View file

@ -207,8 +207,8 @@ parseRTF = do
bs <- (case toks of
-- if we start with {\rtf1...}, parse that and ignore
-- what follows (which in certain cases can be non-RTF content)
tok@(Tok _ (Grouped (Tok _ (ControlWord "rtf" (Just 1)) : _))) : _
-> foldM processTok mempty [tok]
rtftok@(Tok _ (Grouped (Tok _ (ControlWord "rtf" (Just 1)) : _))) : _
-> foldM processTok mempty [rtftok]
_ -> foldM processTok mempty toks)
>>= emitBlocks
unclosed <- closeContainers