LaTeX reader: Gobble option & space after linebreak \\[10pt].
This commit is contained in:
parent
4134dad500
commit
c83b578f58
1 changed files with 5 additions and 1 deletions
|
@ -805,7 +805,11 @@ nonbreakingSpace = char '~' >> return (Str "\160")
|
|||
|
||||
-- hard line break
|
||||
linebreak :: GenParser Char st Inline
|
||||
linebreak = try (string "\\\\") >> return LineBreak
|
||||
linebreak = try $ do
|
||||
string "\\\\"
|
||||
optional $ bracketedText '[' ']' -- e.g. \\[10pt]
|
||||
spaces
|
||||
return LineBreak
|
||||
|
||||
str :: GenParser Char st Inline
|
||||
str = many1 (noneOf specialChars) >>= return . Str
|
||||
|
|
Loading…
Add table
Reference in a new issue