@@ -64,12 +64,14 @@ eitherBlockOrInline :: [[Char]]
64eitherBlockOrInline = ["applet", "button", "del", "iframe", "ins",
64eitherBlockOrInline = ["applet", "button", "del", "iframe", "ins",
65 "map", "area", "object"]
65 "map", "area", "object"]
67inlineHtmlTags :: [[Char]]
68inlineHtmlTags :: [[Char]]
68inlineHtmlTags = ["a", "abbr", "acronym", "b", "basefont", "bdo", "big",
69inlineHtmlTags = ["a", "abbr", "acronym", "b", "basefont", "bdo", "big",
69 "br", "cite", "code", "dfn", "em", "font", "i", "img",
70 "br", "cite", "code", "dfn", "em", "font", "i", "img",
70 "input", "kbd", "label", "q", "s", "samp", "select",
71 "input", "kbd", "label", "q", "s", "samp", "select",
71 "small", "span", "strike", "strong", "sub", "sup",
72 "small", "span", "strike", "strong", "sub", "sup",
72 "textarea", "tt", "u", "var"] ++ eitherBlockOrInline
73 "textarea", "tt", "u", "var"] ++ eitherBlockOrInline
74blockHtmlTags :: [[Char]]
76blockHtmlTags :: [[Char]]
75blockHtmlTags = ["address", "blockquote", "body", "center", "dir", "div",
77blockHtmlTags = ["address", "blockquote", "body", "center", "dir", "div",
@@ -271,9 +273,11 @@ htmlEndTag tag = try $ do
272 return $ "</" ++ tag ++ ">"
274 return $ "</" ++ tag ++ ">"
274-- | Returns @True@ if the tag is (or can be) an inline tag.
277-- | Returns @True@ if the tag is (or can be) an inline tag.
275isInline :: String -> Bool
278isInline :: String -> Bool
276isInline tag = (extractTagType tag) `elem` inlineHtmlTags
279isInline tag = (extractTagType tag) `elem` inlineHtmlTags
278-- | Returns @True@ if the tag is (or can be) a block tag.
282-- | Returns @True@ if the tag is (or can be) a block tag.
279isBlock :: String -> Bool
283isBlock :: String -> Bool