diff --git a/Text/XHtml/Strict.hs b/Text/XHtml/Strict.hs
--- a/Text/XHtml/Strict.hs
+++ b/Text/XHtml/Strict.hs
@@ -45,12 +45,12 @@
                        -> html -- ^ All the 'Html', including a header.
                        -> String
 renderHtmlWithLanguage l theHtml =
-    docType ++ "\n" ++ renderHtmlFragment (mkHtml theHtml)  ++ "\n"
+    docType ++ "\n" ++ renderHtmlFragment code  ++ "\n"
   where
-    mkHtml = (tag "html" ! [ strAttr "xmlns" "http://www.w3.org/1999/xhtml"
+    code = tag "html" ! [ strAttr "xmlns" "http://www.w3.org/1999/xhtml"
                            , strAttr "lang" l
                            , strAttr "xml:lang" l
-                           ] <<)
+                           ] << theHtml
 
 -- | Outputs indented HTML, with indentation inside elements.
 --   This can change the meaning of the HTML document, and 
diff --git a/xhtml.cabal b/xhtml.cabal
--- a/xhtml.cabal
+++ b/xhtml.cabal
@@ -1,5 +1,5 @@
 Name: xhtml
-Version: 3000.2.0.0
+Version: 3000.2.0.1
 Copyright: Bjorn Bringert 2004-2006, Andy Gill, and the Oregon Graduate 
            Institute of Science and Technology, 1999-2001
 Maintainer: bjorn@bringert.net
