From c61f2b6984c8855c0da7df10fd83e40332223f48 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Wed, 24 Jan 2007 19:07:35 +0000 Subject: Fixed bug in HTML attribute parser: now a space is required before an attribute. Previously, 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 --- src/Text/Pandoc/Readers/HTML.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc/Readers') diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs index 66b55c448..8f8822d01 100644 --- a/src/Text/Pandoc/Readers/HTML.hs +++ b/src/Text/Pandoc/Readers/HTML.hs @@ -140,7 +140,7 @@ htmlAttribute = htmlRegularAttribute <|> htmlMinimizedAttribute -- minimized boolean attribute (no = and value) htmlMinimizedAttribute = try (do - spaces + many1 space name <- many1 (choice [letter, oneOf ".-_:"]) spaces notFollowedBy (char '=') @@ -148,7 +148,7 @@ htmlMinimizedAttribute = try (do return (name, content, (" " ++ name))) htmlRegularAttribute = try (do - spaces + many1 space name <- many1 (choice [letter, oneOf ".-_:"]) spaces char '=' -- cgit v1.2.3