git.iko.soy/typeable/pandoc
on master help sign in
Man reader: be more forgiving in parsing table format spec.
commit3e3854fd4fbe84ec1750f7ce7e81a2a375abf41b authorJohn MacFarlane <jgm@berkeley.edu> dateThu 25 Oct 2018, 22:21 (8 years ago) parent5945c3b
1 file changed+3−4
src/Text/Pandoc/Readers/Groff.hs+3−4
src/Text/Pandoc/Readers/Groff.hs+3−4
@@ -383,14 +383,13 @@ tableOption = do
383383tableFormatSpec :: PandocMonad m => GroffLexer m [[TableFormat]]
384384tableFormatSpec = do
385385 speclines <- tableFormatSpecLine `sepBy1` (newline <|> char ',')
386+ skipMany spacetab
386387 char '.'
387388 return speclines
388389
389390tableFormatSpecLine :: PandocMonad m => GroffLexer m [TableFormat]
390−tableFormatSpecLine = do
391− as <- many1 $ skipMany spacetab >> tableColFormat
392− skipMany spacetab
393− return as
391+tableFormatSpecLine =
392+ many1 $ try $ skipMany spacetab >> tableColFormat
394393
395394tableColFormat :: PandocMonad m => GroffLexer m TableFormat
396395tableColFormat = do