From a3708b62dceab3d218addb0d3db7219fa0085c5e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 18 Nov 2002 14:19:28 +0000 Subject: [PATCH] Check for file:// prefix on XML names for SAX parsers svn: r1193 --- gramps/src/TextDoc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/src/TextDoc.py b/gramps/src/TextDoc.py index c67ba72d0..5107af025 100644 --- a/gramps/src/TextDoc.py +++ b/gramps/src/TextDoc.py @@ -1,4 +1,4 @@ -# + # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000 Donald N. Allingham @@ -793,6 +793,8 @@ class StyleSheetList: try: parser = make_parser() parser.setContentHandler(SheetParser(self)) + if self.file[0:7] != "file://": + self.file = "file://" + self.file parser.parse(self.file) except (IOError,OSError,SAXParseException): pass