- def bookmark(self, b, level):
- self.outfile.write(ind_s*(level+1) + '<DT><A HREF="%s" ADD_DATE="%s" LAST_VISIT="%s" LAST_MODIFIED="%s"' % (b.href, b.add_date, b.last_visit, b.last_modified))
- if b.keyword: self.outfile.write(' SHORTCUTURL="%s"' % b.keyword)
- self.outfile.write('>%s</A>\n' % b.name)
- if b.comment: self.outfile.write('<DD>%s\n' % dump_comment(b.comment))
+ 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)
+ 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:
+ value = b.icon_href
+ #if isinstance(value, unicode):
+ # value = value.encode('utf-8')
+ self.outfile.write(' ICON_URI="%s"' % value)
+ if b.icon: self.outfile.write(' ICON="%s"' % b.icon)
+ if b.charset: self.outfile.write(' LAST_CHARSET="%s"' % b.charset)
+ self.outfile.write('>%s</A>\n' % quote_title(b.name))
+ if b.comment: self.outfile.write('<DD>%s\n' % dump_comment(b.comment))