aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-11-02 21:43:02 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-11-02 21:43:02 -0700
commit8ee69c230b9f95e5781ed99db949e3d11e0b645a (patch)
treed28cf77a1d87ac4e5b674d93d7fc8486a3c17230 /src/Text
parent805b9f8a1238288ee094b8593cdb24e24636f01d (diff)
downloadpandoc-8ee69c230b9f95e5781ed99db949e3d11e0b645a.tar.gz
Roff reader: fixed small issue with conditionals.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Roff.hs4
1 files changed, 1 insertions, 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