LaTeX reader: don't eat whitespace after macro with only opt arg.
Closes #2446.
This commit is contained in:
parent
c13494c808
commit
1af8bc6f4d
1 changed files with 3 additions and 1 deletions
|
@ -234,7 +234,9 @@ blocks = mconcat <$> many block
|
|||
|
||||
getRawCommand :: String -> LP String
|
||||
getRawCommand name' = do
|
||||
rawargs <- withRaw (skipopts *> option "" dimenarg *> many braced)
|
||||
rawargs <- withRaw (opt `sepBy` (optional sp) *>
|
||||
option "" (optional sp *> dimenarg) *>
|
||||
many braced)
|
||||
return $ '\\' : name' ++ snd rawargs
|
||||
|
||||
lookupListDefault :: (Ord k) => v -> [k] -> M.Map k v -> v
|
||||
|
|
Loading…
Reference in a new issue