change the doctype for HTML5
parent
dcbc5a275e
commit
2cc6f8b71e
|
@ -129,7 +129,7 @@ class HTMLFormatter (XMLishFormatter):
|
||||||
""" Produce HTML output. """
|
""" Produce HTML output. """
|
||||||
|
|
||||||
CONTENT_TYPE = 'text/html; charset=UTF-8'
|
CONTENT_TYPE = 'text/html; charset=UTF-8'
|
||||||
DOCTYPE = 'html'
|
DOCTYPE = 'html5'
|
||||||
|
|
||||||
def __init__ (self):
|
def __init__ (self):
|
||||||
super (HTMLFormatter, self).__init__ ()
|
super (HTMLFormatter, self).__init__ ()
|
||||||
|
@ -193,7 +193,7 @@ class MobileFormatter (XMLishFormatter):
|
||||||
""" Produce HTML output suitable for mobile devices. """
|
""" Produce HTML output suitable for mobile devices. """
|
||||||
|
|
||||||
CONTENT_TYPE = mt.xhtml + '; charset=UTF-8'
|
CONTENT_TYPE = mt.xhtml + '; charset=UTF-8'
|
||||||
DOCTYPE = 'html'
|
DOCTYPE = 'html5'
|
||||||
|
|
||||||
def __init__ (self):
|
def __init__ (self):
|
||||||
super (MobileFormatter, self).__init__ ()
|
super (MobileFormatter, self).__init__ ()
|
||||||
|
|
Loading…
Reference in New Issue