git.iko.soy/typeable/pandoc
on master help sign in
Fixed bug in HTML attribute parser: now a space is

required before an attribute. Previously, <a.b> would be parsed as an HTML tag with an attribute! git-svn-id: https://pandoc.googlecode.com/svn/trunk@509 788f1e2b-df1e-0410-8736-df70ead52e1b

commitc61f2b6984c8855c0da7df10fd83e40332223f48 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 24 Jan 2007, 19:07 (20 years ago) parentca6cb23
1 file changed+2−2
src/Text/Pandoc/Readers/HTML.hs+2−2
src/Text/Pandoc/Readers/HTML.hs+2−2
@@ -140,7 +140,7 @@ htmlAttribute = htmlRegularAttribute <|> htmlMinimizedAttribute
140140
141141-- minimized boolean attribute (no = and value)
142142htmlMinimizedAttribute = try (do
143− spaces
143+ many1 space
144144 name <- many1 (choice [letter, oneOf ".-_:"])
145145 spaces
146146 notFollowedBy (char '=')
@@ -148,7 +148,7 @@ htmlMinimizedAttribute = try (do
148148 return (name, content, (" " ++ name)))
149149
150150htmlRegularAttribute = try (do
151− spaces
151+ many1 space
152152 name <- many1 (choice [letter, oneOf ".-_:"])
153153 spaces
154154 char '='