Port fix in branch for missing PUBLIC keyword in DOCTYPE to trunk
svn: r16553
This commit is contained in:
parent
1dec96a00f
commit
bdde8f08fe
@ -417,7 +417,8 @@ class Html(list):
|
||||
)
|
||||
self[0:0] = [xmldecl]
|
||||
#
|
||||
def addDOCTYPE(self, name='html', external_id=_XHTML10_STRICT, *args):
|
||||
def addDOCTYPE(self, name='html', public='PUBLIC',
|
||||
external_id=_XHTML10_STRICT, *args):
|
||||
"""
|
||||
Add a DOCTYPE statement to the start of the list
|
||||
|
||||
@ -430,8 +431,9 @@ class Html(list):
|
||||
:param args: 0 or more positional parameters to be added to this
|
||||
DOCTYPE.
|
||||
"""
|
||||
doctype = '<!DOCTYPE %s %s%s>' % (
|
||||
name,
|
||||
doctype = '<!DOCTYPE %s %s %s%s>' % (
|
||||
name,
|
||||
public,
|
||||
external_id,
|
||||
' %s'*len(args) % args
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user