git.iko.soy/typeable/pandoc
on master help sign in
Fixed bug in HTML attribute parser: now a space is
c61f2b6fiddlosopher
src/Text/Pandoc/Readers/HTML.hs+2−2
@@ -140,7 +140,7 @@ htmlAttribute = htmlRegularAttribute <|> htmlMinimizedAttribute
140
140
141-- minimized boolean attribute (no = and value)
141-- minimized boolean attribute (no = and value)
142htmlMinimizedAttribute = try (do
142htmlMinimizedAttribute = try (do
143− spaces
143+ many1 space
144 name <- many1 (choice [letter, oneOf ".-_:"])
144 name <- many1 (choice [letter, oneOf ".-_:"])
145 spaces
145 spaces
146 notFollowedBy (char '=')
146 notFollowedBy (char '=')
@@ -148,7 +148,7 @@ htmlMinimizedAttribute = try (do
148 return (name, content, (" " ++ name)))
148 return (name, content, (" " ++ name)))
149
149
150htmlRegularAttribute = try (do
150htmlRegularAttribute = try (do
151− spaces
151+ many1 space
152 name <- many1 (choice [letter, oneOf ".-_:"])
152 name <- many1 (choice [letter, oneOf ".-_:"])
153 spaces
153 spaces
154 char '='
154 char '='