conduit r1813 - in trunk: . conduit/modules



Author: jstowers
Date: Tue Jan 20 01:24:01 2009
New Revision: 1813
URL: http://svn.gnome.org/viewvc/conduit?rev=1813&view=rev

Log:
2009-01-20  John Stowers  <john stowers gmail com>

	* conduit/modules/TomboyModule.py: Dont bork on utk-16 XML
	Fixes #564020 (Brian Teague)



Modified:
   trunk/ChangeLog
   trunk/conduit/modules/TomboyModule.py

Modified: trunk/conduit/modules/TomboyModule.py
==============================================================================
--- trunk/conduit/modules/TomboyModule.py	(original)
+++ trunk/conduit/modules/TomboyModule.py	Tue Jan 20 01:24:01 2009
@@ -79,7 +79,7 @@
         title,ext = f.get_filename_and_extension()
         text = f.get_contents_as_text()
         #A tomboy formatted XML file
-        if text.startswith('<?xml version="1.0" encoding="utf-8"?>') and text.find('xmlns="http://beatniksoftware.com/tomboy";>') > 0:
+        if text.startswith('<?xml version="1.0"') and text.find('xmlns="http://beatniksoftware.com/tomboy";>') > 0:
             note = TomboyNote(
                     title=Utils.xml_extract_value_from_tag("title", text),
                     contents=None,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]