def start_folder(self, f, level):
self.outfile.write("""
- Level: %d
- Folder: %s
- AddDate: %s
- Comment: %s
- LastModified: %s
- """ % (level, f.name, f.add_date, f.comment, f.last_modified or ''))
+Level: %d
+Folder: %s
+AddDate: %s
+Comment: %s
+LastModified: %s
+""" % (level, f.name, f.add_date, f.comment, f.last_modified or ''))
def bookmark(self, b, level):
self.outfile.write("""
- Level: %d
- Title: %s
- URL: %s
- AddDate: %s
- LastVisit: %s
- LastModified: %s
- Keyword: %s
- Comment: %s
- IconURI: %s
- Icon: %s
- Charset: %s
- """ % (level+1, b.name, b.href, b.add_date, b.last_visit, b.last_modified,
+Level: %d
+Title: %s
+URL: %s
+AddDate: %s
+LastVisit: %s
+LastModified: %s
+Keyword: %s
+Comment: %s
+IconURI: %s
+Icon: %s
+Charset: %s
+""" % (level+1, b.name, b.href, b.add_date, b.last_visit, b.last_modified,
b.keyword, b.comment.replace('\n', "\\n"),
b.icon_href or '', b.icon or '', b.charset or ''))
def start_folder(self, f, level):
self.outfile.write("""
- Level: %d
- Folder: %s
- AddDate: %s
- Comment: %s
- LastModified: %s
- """ % (level, f.name, strftime(f.add_date), f.comment, strftime(f.last_modified)))
+Level: %d
+Folder: %s
+AddDate: %s
+Comment: %s
+LastModified: %s
+""" % (level, f.name, strftime(f.add_date), f.comment, strftime(f.last_modified)))
def bookmark(self, b, level):
self.outfile.write("""
- Level: %d
- Title: %s
- URL: %s
- AddDate: %s
- LastVisit: %s
- LastModified: %s
- Keyword: %s
- Comment: %s""" % (level+1, b.name, b.href, strftime(b.add_date), strftime(b.last_visit), strftime(b.last_modified), b.keyword, b.comment))
+Level: %d
+Title: %s
+URL: %s
+AddDate: %s
+LastVisit: %s
+LastModified: %s
+Keyword: %s
+Comment: %s""" % (level+1, b.name, b.href, strftime(b.add_date), strftime(b.last_visit), strftime(b.last_modified), b.keyword, b.comment))
for attr_name, attr_out in (("error", "Error"), ("no_error", "NoError"),
("moved", "Moved"), ("size", "Size"), ("md5", "Md5"),