From 5e1a9df44e5fece3e3453f91d1dc0aea8ca0f8b8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 11 Jul 2011 18:42:33 +0000 Subject: [PATCH] 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 --- Writers/bkmk_whtml.py | 3 ++- bkmk_objects.py | 10 ++++++++-- bkmk_parser.py | 17 +++++++++-------- 3 files changed, 19 insertions(+), 11 deletions(-) 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) + '