We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 481ff8a commit aaef517Copy full SHA for aaef517
src/Text/Pandoc/Readers/RTF.hs
@@ -207,8 +207,8 @@ parseRTF = do
207
bs <- (case toks of
208
-- if we start with {\rtf1...}, parse that and ignore
209
-- what follows (which in certain cases can be non-RTF content)
210
- tok@(Tok _ (Grouped (Tok _ (ControlWord "rtf" (Just 1)) : _))) : _
211
- -> foldM processTok mempty [tok]
+ rtftok@(Tok _ (Grouped (Tok _ (ControlWord "rtf" (Just 1)) : _))) : _
+ -> foldM processTok mempty [rtftok]
212
_ -> foldM processTok mempty toks)
213
>>= emitBlocks
214
unclosed <- closeContainers
0 commit comments