From bdde8f08fe99850b72ec17920a30b67b47451323 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Thu, 3 Feb 2011 15:43:23 +0000 Subject: [PATCH] Port fix in branch for missing PUBLIC keyword in DOCTYPE to trunk svn: r16553 --- src/plugins/lib/libhtml.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/lib/libhtml.py b/src/plugins/lib/libhtml.py index e583109a5..d6b15967b 100644 --- a/src/plugins/lib/libhtml.py +++ b/src/plugins/lib/libhtml.py @@ -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 = '' % ( - name, + doctype = '' % ( + name, + public, external_id, ' %s'*len(args) % args )