Roff reader: improve handling of groups.
This commit is contained in:
parent
0e31483d43
commit
75f6af5c12
1 changed files with 2 additions and 4 deletions
|
@ -522,10 +522,8 @@ lexGroup = do
|
|||
groupstart
|
||||
mconcat <$> manyTill manToken groupend
|
||||
where
|
||||
groupstart = try $ string "\\{\\" >> newline
|
||||
groupend = try $ optional (char '.' >> many spacetab) >>
|
||||
string "\\}" >> (lexLine <|> lexEmptyLine)
|
||||
-- could be comment
|
||||
groupstart = try $ string "\\{" <* optional (try (string "\\\n"))
|
||||
groupend = try $ string "\\}"
|
||||
|
||||
lexIncludeFile :: PandocMonad m => [Arg] -> RoffLexer m RoffTokens
|
||||
lexIncludeFile args = do
|
||||
|
|
Loading…
Reference in a new issue