]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(flad): Unindent code erroneously indented in commit c88cb7a7
authorOleg Broytman <phd@phdru.name>
Mon, 30 Oct 2017 18:28:19 +0000 (21:28 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 30 Oct 2017 18:28:25 +0000 (21:28 +0300)
Storage/bkmk_stflad.py
Writers/bkmk_wflad.py

index 63ee0400b5b55f9d47339abef630859ecbbc9853..a60b30af872b215e62f7e80d151cdd672589ff66 100644 (file)
@@ -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 ''))
 
index 11cd1436b398a18fbf77d664a59c30d51b01de87..06c523b33034680c97b800c873443ebc7df04e4d 100644 (file)
@@ -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"),