thinkle / gourmet

Gourmet Recipe Manager
GNU General Public License v2.0
338 stars 139 forks source link

broken Gourmet XML export in 0.9.1 #524

Closed ockham closed 11 years ago

ockham commented 11 years ago

Converted from SourceForge issue 1417530, submitted by SourceForge user kthomsen on 2006-01-28 18:23:57 UTC.

System: Fedora Core 4 + Fedora Extras Locale: en_US.UTF-8

When exporting a recipe as a Gourmet XML file, Gourmet 0.9.1 creates a syntactically invalid XML file which results in the following error during re-import:

Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/gourmet/GourmetThreads.py", line 38, in target_func self.c.run() File "/usr/lib/python2.4/site-packages/gourmet/importers/importer.py", line 371, in run self.iclass.run() File "/usr/lib/python2.4/site-packages/gourmet/importers/xml_importer.py", line 60, in run self.parse = xml.sax.parse(self.fn, self.rh) File "/usr/lib/python2.4/site-packages/_xmlplus/sax/init.py", line 31, in parse parser.parse(filename_or_stream) File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 220, in feed self._err_handler.fatalError(exc) File "/usr/lib/python2.4/site-packages/_xmlplus/sax/handler.py", line 38, in fatalError raise exception SAXParseException: /home/chr/bos.grmt:23:19: not well-formed (invalid token)

ockham commented 11 years ago

Submitted by SourceForge user thomas_hinkle on 2006-02-09 11:52:25 UTC.

Logged In: YES user_id=1030390

This has been fixed in the latest release. If you need to use the old export, you can fix the problem by using find replace or sed or whatever you like to change "Preparation Time" to "preptime" and "Cooking Time" to "cooktime".