Improve function layout.

This commit is contained in:
Yitzchak Gale 2018-07-01 14:54:41 +03:00
parent ea3047902a
commit 787b7f060f

View File

@ -97,8 +97,7 @@ safeTagsCustom ::
-- 'safeTagName' -- 'safeTagName'
-> ((Text, Text) -> Maybe (Text, Text)) -- ^ Sanitize attributes, -> ((Text, Text) -> Maybe (Text, Text)) -- ^ Sanitize attributes,
-- like 'sanitizeAttribute' -- like 'sanitizeAttribute'
-> -> [Tag Text] -> [Tag Text]
[Tag Text] -> [Tag Text]
safeTagsCustom _ _ [] = [] safeTagsCustom _ _ [] = []
safeTagsCustom safeName sanitizeAttr (t@(TagClose name):tags) safeTagsCustom safeName sanitizeAttr (t@(TagClose name):tags)
| safeName name = t : safeTagsCustom safeName sanitizeAttr tags | safeName name = t : safeTagsCustom safeName sanitizeAttr tags