From 41abc4fec1e2e2c659c97934b43f358da33ca922 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 23 Sep 2007 13:03:53 +0000 Subject: [PATCH] Separate Netscape and Mozilla formats. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@71 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Writers/bkmk_whtml.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Writers/bkmk_whtml.py b/Writers/bkmk_whtml.py index f2986fd..3fe8637 100644 --- a/Writers/bkmk_whtml.py +++ b/Writers/bkmk_whtml.py @@ -6,7 +6,11 @@ import os -NSFORMAT = os.environ.has_key("BKMK_NSFORMAT") +MZFORMAT = os.environ.has_key("BKMK_MZFORMAT") +if MZFORMAT: + NSFORMAT = True +else: + NSFORMAT = os.environ.has_key("BKMK_NSFORMAT") def dump_comment(comment): @@ -35,7 +39,7 @@ class writer_html(Writer): def start_folder(self, f, level): self.outfile.write(ind_s*level + '

%s

\n' % f.name) self._folder(f, level) @@ -44,9 +48,10 @@ class writer_html(Writer): def bookmark(self, b, level): self.outfile.write(ind_s*(level+1) + '
%s\n' % b.name) if b.comment: self.outfile.write('
%s\n' % dump_comment(b.comment)) -- 2.39.5