From 8ee69c230b9f95e5781ed99db949e3d11e0b645a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 2 Nov 2018 21:43:02 -0700 Subject: Roff reader: fixed small issue with conditionals. --- src/Text/Pandoc/Readers/Roff.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Text/Pandoc/Readers/Roff.hs b/src/Text/Pandoc/Readers/Roff.hs index 0559bab42..d7d3a3f32 100644 --- a/src/Text/Pandoc/Readers/Roff.hs +++ b/src/Text/Pandoc/Readers/Roff.hs @@ -510,9 +510,7 @@ lexConditional mname = do else expression skipMany spacetab st <- getState -- save state, so we can reset it - ifPart <- lexGroup - <|> (char '\\' >> newline >> manToken) - <|> manToken + ifPart <- lexGroup <|> manToken case mbtest of Nothing -> do putState st -- reset state, so we don't record macros in skipped section -- cgit v1.2.3