From 4da26411e5c4f782997a54b2a92acd7c9208bb09 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 --- src/TextDoc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TextDoc.py b/src/TextDoc.py index c67ba72d0..5107af025 100644 --- a/src/TextDoc.py +++ b/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