- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 19 Mar 2012 06:09:53 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec/tools
In directory hutz:/tmp/cvs-serv16083/tools
Modified Files:
spec-splitter.py
Log Message:
Apply revert request to W3C copy. (whatwg r7027)
[updated by splitter]
Index: spec-splitter.py
===================================================================
RCS file: /sources/public/html5/spec/tools/spec-splitter.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- spec-splitter.py 15 Jan 2012 12:02:51 -0000 1.12
+++ spec-splitter.py 19 Mar 2012 06:09:51 -0000 1.13
@@ -412,8 +412,7 @@
serializer = html5lib.serializer.HTMLSerializer(quote_attr_values=True, inject_meta_charset=False)
f.write("<!doctype html>\n")
for text in serializer.serialize(tokens, encoding='us-ascii'):
- if text != '<!DOCTYPE html>': # some versions of lxml emit this; get rid of it if so
- f.write(text)
+ f.write(text)
else:
f.write(etree.tostring(doc, pretty_print=False, method="html"))
Received on Monday, 19 March 2012 06:09:55 UTC