diff --git a/src/plugins/lib/libhtml.py b/src/plugins/lib/libhtml.py index 41d81f385..60a1f2e43 100644 --- a/src/plugins/lib/libhtml.py +++ b/src/plugins/lib/libhtml.py @@ -427,7 +427,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 @@ -440,8 +441,9 @@ class Html(list): :param args: 0 or more positional parameters to be added to this DOCTYPE. """ - doctype = '' % ( - name, + doctype = '' % ( + name, + public, external_id, ' %s'*len(args) % args )