- From: Lachlan Hunt via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 09 Mar 2009 11:10:32 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html-author/utils In directory hutz:/tmp/cvs-serv10245 Modified Files: elements.py Log Message: Updated script to output new lines between each element Index: elements.py =================================================================== RCS file: /sources/public/html5/html-author/utils/elements.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- elements.py 5 Mar 2009 03:10:09 -0000 1.3 +++ elements.py 9 Mar 2009 11:10:30 -0000 1.4 @@ -90,6 +90,7 @@ output_generator = s.serialize(stream) for item in output_generator: sys.stdout.write(item) + sys.stdout.write("\n\n") def generateElementSummaries(): headings = sourceDocument.getElementsByTagName("h4") @@ -101,7 +102,7 @@ summary['contentmodel'] = getDescriptions(dt[2]) summary['attributes'] = getDescriptions(dt[3]) summary['dom'] = getDescriptions(dt[4]) - summary['desc'] = parser.parseFragment(config.get(summary['tagname'], 'desc')) + summary['desc'] = parser.parseFragment(unicode(config.get(summary['tagname'], 'desc'), "UTF-8")) summary['start'] = config.get(summary['tagname'], 'start') summary['end'] = config.get(summary['tagname'], 'end') markup = markUpSummary(summary)
Received on Monday, 9 March 2009 11:10:46 UTC