From ff958ee854d80253b271de04945a57fafc0363c4 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 30 Oct 2017 21:28:19 +0300 Subject: [PATCH] Fix(flad): Unindent code erroneously indented in commit c88cb7a7 --- Storage/bkmk_stflad.py | 36 ++++++++++++++++++------------------ Writers/bkmk_wflad.py | 28 ++++++++++++++-------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Storage/bkmk_stflad.py b/Storage/bkmk_stflad.py index 63ee040..a60b30a 100644 --- a/Storage/bkmk_stflad.py +++ b/Storage/bkmk_stflad.py @@ -34,27 +34,27 @@ class storage_flad(Walker): 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 '')) diff --git a/Writers/bkmk_wflad.py b/Writers/bkmk_wflad.py index 11cd143..06c523b 100644 --- a/Writers/bkmk_wflad.py +++ b/Writers/bkmk_wflad.py @@ -30,23 +30,23 @@ class writer_flad(Writer): 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"), -- 2.39.2