xhtml 3000.0.0 → 3000.0.1
raw patch · 4 files changed
+8/−5 lines, 4 files
Files
- Text/XHtml/BlockTable.hs +1/−1
- Text/XHtml/Internals.hs +6/−3
- Text/XHtml/Transitional.hs +0/−0
- xhtml.cabal +1/−1
Text/XHtml/BlockTable.hs view
@@ -92,7 +92,7 @@ -- to show boxes aka the above ascii renditions. instance (Show a) => Show (BlockTable a) where- showsPrec p = showsTable+ showsPrec _ = showsTable type TableI a = [[(a,(Int,Int))]] -> [[(a,(Int,Int))]]
Text/XHtml/Internals.hs view
@@ -186,6 +186,9 @@ -- * Html Rendering -- +mkHtml :: HTML html => html -> Html+mkHtml = (tag "html" ! [strAttr "xmlns" "http://www.w3.org/1999/xhtml"] <<)+ -- | Output the HTML without adding newlines or spaces within the markup. -- This should be the most time and space efficient way to -- render HTML, though the ouput is quite unreadable.@@ -193,7 +196,7 @@ String -- ^ DOCTYPE declaration -> html -> String showHtmlInternal docType theHtml = - docType ++ showHtmlFragment (tag "html" << theHtml)+ docType ++ showHtmlFragment (mkHtml theHtml) -- | Outputs indented HTML. Because space matters in -- HTML, the output is quite messy.@@ -201,7 +204,7 @@ String -- ^ DOCTYPE declaration -> html -> String renderHtmlInternal docType theHtml =- docType ++ "\n" ++ renderHtmlFragment (tag "html" << theHtml) ++ "\n"+ docType ++ "\n" ++ renderHtmlFragment (mkHtml theHtml) ++ "\n" -- | Outputs indented HTML, with indentation inside elements. -- This can change the meaning of the HTML document, and @@ -212,7 +215,7 @@ String -- ^ DOCTYPE declaration -> html -> String prettyHtmlInternal docType theHtml = - docType ++ "\n" ++ prettyHtmlFragment (tag "html" << theHtml)+ docType ++ "\n" ++ prettyHtmlFragment (mkHtml theHtml) -- | Render a piece of HTML without adding a DOCTYPE declaration -- or root element. Does not add any extra whitespace.
Text/XHtml/Transitional.hs view
xhtml.cabal view
@@ -1,5 +1,5 @@ Name: xhtml-Version: 3000.0.0+Version: 3000.0.1 Copyright: Bjorn Bringert 2004-2006, Andy Gill, and the Oregon Graduate Institute of Science and Technology, 1999-2001 Maintainer: bjorn@bringert.net