git.iko.soy/typeable/pandoc
on master help sign in
Parse CSS that doesn't contain the optional semicolon
commit1f379da94beeb52c5899ee920f2d19416422f570 authormb21 <mb21@users.noreply.github.com> dateWed 2 Dec 2015, 23:56 (11 years ago) parentad6578f
1 file changed+1−1
src/Text/Pandoc/CSS.hs+1−1
src/Text/Pandoc/CSS.hs+1−1
@@ -10,7 +10,7 @@ import Text.Parsec.String
1010ruleParser :: Parser (String, String)
1111ruleParser = do
1212 p <- many1 (noneOf ":") <* char ':'
13− v <- many1 (noneOf ":;") <* char ';' <* spaces
13+ v <- many1 (noneOf ":;") <* (optional $ char ';') <* spaces
1414 return (trim p, trim v)
1515
1616styleAttrParser :: Parser [(String, String)]