Roff reader: another fix for conditionals.

This commit is contained in:
John MacFarlane 2018-11-02 21:55:22 -07:00
parent 8ee69c230b
commit 165e3bfffc

View file

@ -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