From 05adbd6f19631b8e04c04784565b7bb7f62b2c8c Mon Sep 17 00:00:00 2001 From: mb21 Date: Sun, 22 Oct 2017 12:03:05 +0200 Subject: LaTeX Reader: use opt function consistently --- src/Text/Pandoc/Readers/LaTeX.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 5ac114b19..cb7f3f50d 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -1320,7 +1320,7 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList $ , ("i", lit "i") , ("\\", linebreak <$ (do inTableCell <- sInTableCell <$> getState guard $ not inTableCell - optional (bracketed inline) + optional opt spaces)) , (",", lit "\8198") , ("@", pure mempty) @@ -1750,7 +1750,7 @@ include = do (Tok _ (CtrlSeq name) _) <- controlSeq "include" <|> controlSeq "input" <|> controlSeq "subfile" <|> controlSeq "usepackage" - skipMany $ bracketed inline -- skip options + skipMany opt fs <- (map (T.unpack . removeDoubleQuotes . T.strip) . T.splitOn "," . untokenize) <$> braced let fs' = if name == "usepackage" @@ -2355,7 +2355,7 @@ hline = try $ do controlSeq "endhead" <|> controlSeq "endfirsthead" spaces - optional $ bracketed inline + optional opt return () lbreak :: PandocMonad m => LP m Tok -- cgit v1.2.3