From 165e3bfffc9852efb9087bd637a51de34e503696 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 2 Nov 2018 21:55:22 -0700 Subject: Roff reader: another fix for conditionals. --- src/Text/Pandoc/Readers/Roff.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Readers/Roff.hs') diff --git a/src/Text/Pandoc/Readers/Roff.hs b/src/Text/Pandoc/Readers/Roff.hs index d7d3a3f32..f2eb81bdb 100644 --- a/src/Text/Pandoc/Readers/Roff.hs +++ b/src/Text/Pandoc/Readers/Roff.hs @@ -510,7 +510,7 @@ lexConditional mname = do else expression skipMany spacetab st <- getState -- save state, so we can reset it - ifPart <- lexGroup <|> manToken + ifPart <- lexGroup <|> (optional (try (char '\\' >> newline)) >> manToken) case mbtest of Nothing -> do putState st -- reset state, so we don't record macros in skipped section -- cgit v1.2.3