Bookmarks storage module - FLAD (Flat ASCII Database)
special version for compatibility with old (version 1) bkmk2db
- Written by BroytMann, Feb 2000 - Aug 2004. Copyright (C) 2000-2004 PhiloSoft Design
+ Written by BroytMann, Feb 2000 - Mar 2005. Copyright (C) 2000-2005 PhiloSoft Design
"""
LastModified: %s
Keyword: %s
Comment: %s
-""" % (level+1, b.name, b.href, b.add_date, b.last_visit, b.last_modified, b.keyword, b.comment))
+""" % (level+1, b.name, b.href, b.add_date, b.last_visit, b.last_modified,
+ b.keyword, b.comment.replace('\n', "\\n")))
def ruler(self, r, level):
got_folder = record.has_key("Folder") # Test here to save got_folder for next loop
if record.has_key("URL"):
- bookmark = Bookmark(record["URL"], record["AddDate"], record["LastVisit"], record["LastModified"], record["Keyword"], record["Comment"])
+ comment = record["Comment"].replace("\\n", '\n')
+ bookmark = Bookmark(record["URL"], record["AddDate"],
+ record["LastVisit"], record["LastModified"],
+ record["Keyword"], comment)
bookmark.name = record["Title"]
self.current_folder.append(bookmark)