aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Groff.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Readers/Groff.hs b/src/Text/Pandoc/Readers/Groff.hs
index 01030ccd7..e0b9d9c94 100644
--- a/src/Text/Pandoc/Readers/Groff.hs
+++ b/src/Text/Pandoc/Readers/Groff.hs
@@ -383,14 +383,13 @@ tableOption = do
tableFormatSpec :: PandocMonad m => GroffLexer m [[TableFormat]]
tableFormatSpec = do
speclines <- tableFormatSpecLine `sepBy1` (newline <|> char ',')
+ skipMany spacetab
char '.'
return speclines
tableFormatSpecLine :: PandocMonad m => GroffLexer m [TableFormat]
-tableFormatSpecLine = do
- as <- many1 $ skipMany spacetab >> tableColFormat
- skipMany spacetab
- return as
+tableFormatSpecLine =
+ many1 $ try $ skipMany spacetab >> tableColFormat
tableColFormat :: PandocMonad m => GroffLexer m TableFormat
tableColFormat = do