From: Oleg Broytman Date: Mon, 11 Jul 2011 18:42:33 +0000 (+0000) Subject: Recode hrefs (due to international domain names) to the current charset. X-Git-Tag: v4.5.3~40 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=5e1a9df44e5fece3e3453f91d1dc0aea8ca0f8b8 Recode hrefs (due to international domain names) to the current charset. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@336 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Writers/bkmk_whtml.py b/Writers/bkmk_whtml.py index 8b3cd13..7f23fb9 100644 --- a/Writers/bkmk_whtml.py +++ b/Writers/bkmk_whtml.py @@ -13,6 +13,7 @@ __license__ = "GNU GPL" __all__ = ['writer_html'] +from m_lib.defenc import default_encoding from bkmk_objects import Writer, BKMK_FORMAT, quote_title @@ -48,7 +49,7 @@ class writer_html(Writer): self.outfile.write(ind_s*level + "

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