git.iko.soy/typeable/html-parse
on master help sign in
Wibble: Rewrap line
commit937d4a7c21d91846307638cab9ce4f7efd8dab06 authorBen Gamari <ben@smart-cactus.org> dateMon 29 Aug 2022, 15:12 (4 years ago) parent5ae61d7
1 file changed+2−2
src/Text/HTML/Parser.hs+2−2
src/Text/HTML/Parser.hs+2−2
@@ -412,8 +412,8 @@ renderAttrs = T.unwords . fmap renderAttr . reverse
412412renderAttr :: Attr -> Text
413413renderAttr (Attr k v) = mconcat [k, "=\"", v, "\""]
414414
415−-- | Meld neighoring 'ContentChar' and 'ContentText' constructors together and drops empty text
416−-- elements.
415+-- | Meld neighoring 'ContentChar' and 'ContentText'
416+-- constructors together and drops empty text elements.
417417canonicalizeTokens :: [Token] -> [Token]
418418canonicalizeTokens = filter (/= ContentText "") . meldTextTokens
419419