oops stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 18 May 2009 13:41:53 +0200
branchstable
changeset 1839 2cdd0d1d3888
parent 1838 d4cbcc15c01c
child 1840 f4b5c15d1147
oops
web/views/basecontrollers.py
--- a/web/views/basecontrollers.py	Mon May 18 12:33:00 2009 +0200
+++ b/web/views/basecontrollers.py	Mon May 18 13:41:53 2009 +0200
@@ -36,7 +36,8 @@
     # XXX factor out, watch view.py ~ Maintemplate.doctype
     if self.req.xhtml_browser():
         dt = STRICT_DOCTYPE
-    dt = STRICT_DOCTYPE_NOEXT
+    else:
+        dt = STRICT_DOCTYPE_NOEXT
     head = u'<?xml version="1.0"?>\n' + dt
     return head + u'<div xmlns="http://www.w3.org/1999/xhtml" xmlns:cubicweb="http://www.logilab.org/2008/cubicweb">%s</div>' % source.strip()