LaTeX writer: clean up options parser.
Make sure that we require the closing bracket.
This commit is contained in:
parent
4112b321cd
commit
4438ff17fb
1 changed files with 4 additions and 3 deletions
|
@ -1259,10 +1259,11 @@ deNote x = x
|
|||
pDocumentOptions :: P.Parsec String () [String]
|
||||
pDocumentOptions = do
|
||||
P.char '['
|
||||
P.sepBy
|
||||
(P.many $
|
||||
P.spaces *> P.noneOf (" ,]" :: String) <* P.spaces)
|
||||
opts <- P.sepBy
|
||||
(P.many $ P.spaces *> P.noneOf (" ,]" :: String) <* P.spaces)
|
||||
(P.char ',')
|
||||
P.char ']'
|
||||
return opts
|
||||
|
||||
pDocumentClass :: P.Parsec String () String
|
||||
pDocumentClass =
|
||||
|
|
Loading…
Add table
Reference in a new issue