From: Oleg Broytman Date: Sun, 23 Sep 2007 13:03:53 +0000 (+0000) Subject: Separate Netscape and Mozilla formats. X-Git-Tag: v4.5.3~305 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=41abc4fec1e2e2c659c97934b43f358da33ca922;p=bookmarks_db.git Separate Netscape and Mozilla formats. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@71 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- 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))