Check for file:// prefix on XML names for SAX parsers
svn: r1193
This commit is contained in:
parent
b55ec8a3ec
commit
a3708b62dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user