LaTeX reader: skip space before option or argument.
This commit is contained in:
parent
d033fc9d3e
commit
cf6cd15c27
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ bracketedText openB closeB = do
|
|||
|
||||
-- | Returns an option or argument of a LaTeX command.
|
||||
optOrArg :: GenParser Char st [Char]
|
||||
optOrArg = bracketedText '{' '}' <|> bracketedText '[' ']'
|
||||
optOrArg = try $ spaces >> (bracketedText '{' '}' <|> bracketedText '[' ']')
|
||||
|
||||
-- | True if the string begins with '{'.
|
||||
isArg :: [Char] -> Bool
|
||||
|
|
Loading…
Add table
Reference in a new issue