From 692931eecbc8db8a82faebb6c2b83bee1f09132b Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Wed, 27 Nov 2002 14:36:27 +0000 Subject: [PATCH] Don't accumulate meta headers when exporting HTML. git-svn-id: http://dom-editor.googlecode.com/svn/branches/Gtk2@449 ef21e15d-ca94-4315-9c45-0d95b1b2e117 --- Dome/to_html.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dome/to_html.py b/Dome/to_html.py index 930a8d3..5a5b328 100644 --- a/Dome/to_html.py +++ b/Dome/to_html.py @@ -9,10 +9,18 @@ from Ft.Xml import InputSource doc = implementation.createDocument(None, 'root', None) proc = Processor() from cStringIO import StringIO + +# The HTML writer adds some header fields, so strip any existing ones out or we'll get +# two lots... + stream = StringIO(''' - + + + + -- 2.11.4.GIT