1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 09:55:52 +03:00

classifyMarkup takes the first category if any.

This commit is contained in:
Rob Rix 2015-12-24 09:51:56 -05:00
parent e77b3a8bd4
commit e6e3d9d450

View File

@ -23,7 +23,7 @@ import qualified Source ((++))
type ClassName = String
classifyMarkup :: Foldable f => f String -> Markup -> Markup
classifyMarkup categories element = maybe element ((element !) . A.class_ . stringValue . ("category-" ++)) $ maybeLast categories
classifyMarkup categories element = maybe element ((element !) . A.class_ . stringValue . ("category-" ++)) $ maybeFirst categories
split :: Diff a Info -> String -> String -> IO ByteString
split diff before after = return . renderHtml