]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix: do not write LAST_MODIFIED is it's None
authorOleg Broytman <phd@phdru.name>
Sat, 2 Apr 2016 19:27:29 +0000 (22:27 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 2 Apr 2016 19:27:29 +0000 (22:27 +0300)
Writers/bkmk_whtml.py

index 04eb8ba7b39276e7ed2a18ed857f37b551337150..caf374737b29f3ea873cbe0c9599c931b7d233da 100644 (file)
@@ -47,7 +47,8 @@ class writer_html(Writer):
    def bookmark(self, b, level):
       self.outfile.write(ind_s*(level+1) + '<DT><A HREF="%s" ADD_DATE="%s"' % (b.href, b.add_date))
       if b.last_visit: self.outfile.write(' LAST_VISIT="%s"' % b.last_visit)
-      self.outfile.write(' LAST_MODIFIED="%s"' % b.last_modified)
+      if b.last_modified:
+         self.outfile.write(' LAST_MODIFIED="%s"' % b.last_modified)
       if BKMK_FORMAT == "MOZILLA":
          if b.keyword: self.outfile.write(' SHORTCUTURL="%s"' % b.keyword)
          if b.icon_href: self.outfile.write(' ICON_URI="%s"' % b.icon_href)