X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Writers%2Fbkmk_whtml.py;h=04eb8ba7b39276e7ed2a18ed857f37b551337150;hb=a8b1413d9f4931f1dc5f5504da7bd3f98151fd35;hp=00591b04ac0d2c8018365b6a9da7a17223510372;hpb=832eb757ef7f81abf1e431ce16f368c10dd57962;p=bookmarks_db.git diff --git a/Writers/bkmk_whtml.py b/Writers/bkmk_whtml.py index 00591b0..04eb8ba 100644 --- a/Writers/bkmk_whtml.py +++ b/Writers/bkmk_whtml.py @@ -3,13 +3,14 @@ This file is a part of Bookmarks database and Internet robot. """ -__version__ = "$Revision$"[11:-2] -__revision__ = "$Id$"[5:-2] -__date__ = "$Date$"[7:-2] __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design" +__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" __license__ = "GNU GPL" +__all__ = ['writer_html'] + + +from m_lib.defenc import default_encoding from bkmk_objects import Writer, BKMK_FORMAT, quote_title @@ -19,7 +20,6 @@ def dump_comment(comment): comment = comment.replace("\n", "
\n") return comment - ind_s = " "*4 class writer_html(Writer): @@ -45,7 +45,9 @@ class writer_html(Writer): self.outfile.write(ind_s*level + "

\n") def bookmark(self, b, level): - self.outfile.write(ind_s*(level+1) + '