aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Roff.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-11-02 21:55:22 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-11-02 21:55:22 -0700
commit165e3bfffc9852efb9087bd637a51de34e503696 (patch)
tree5441eb208cd3cccf578164cf4fa43024548f744f /src/Text/Pandoc/Readers/Roff.hs
parent8ee69c230b9f95e5781ed99db949e3d11e0b645a (diff)
downloadpandoc-165e3bfffc9852efb9087bd637a51de34e503696.tar.gz
Roff reader: another fix for conditionals.
Diffstat (limited to 'src/Text/Pandoc/Readers/Roff.hs')
-rw-r--r--src/Text/Pandoc/Readers/Roff.hs2
1 files changed, 1 insertions, 1 deletions
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