]> Git — Sourcephile - doclang.git/blob - Text/Blaze/HTML5.hs
Fix xmlify NodePair.
[doclang.git] / Text / Blaze / HTML5.hs
1 {-# LANGUAGE OverloadedStrings #-}
2 module Text.Blaze.HTML5 where
3
4 import Data.Text (Text)
5
6 import Text.Blaze.Utils
7
8 indentTag :: Text -> IndentTag
9 indentTag t =
10 case t of
11 "aside" -> IndentTagChildren
12 "body" -> IndentTagChildren
13 "div" -> IndentTagChildren
14 "head" -> IndentTagChildren
15 "html" -> IndentTagChildren
16 "nav" -> IndentTagChildren
17 "ol" -> IndentTagChildren
18 "section" -> IndentTagChildren
19 "table" -> IndentTagChildren
20 "tbody" -> IndentTagChildren
21 "thead" -> IndentTagChildren
22 "tr" -> IndentTagChildren
23 "ul" -> IndentTagChildren
24 -- "td" -> IndentTagText
25 "li" -> IndentTagText
26 _ -> IndentTagPreserve