Roff tokenizer: skip .sp in tables.

This commit is contained in:
John MacFarlane 2018-10-26 21:37:42 -07:00
parent e0f985bb21
commit cbeef9f5ca

View file

@ -364,7 +364,8 @@ lexTableRows :: PandocMonad m => RoffLexer m [TableRow]
lexTableRows = do
aligns <- tableFormatSpec
spaces
skipMany lexComment
skipMany $ lexComment
<|> try (mempty <$ (string ".sp" >> skipMany spaceChar >> newline))
spaces
rows <- many (notFollowedBy (try (string ".TE") <|> try (string ".T&")) >>
tableRow)