--- a/Helpviewer/Bookmarks/BookmarksManager.py Wed Mar 21 20:14:45 2012 +0100 +++ b/Helpviewer/Bookmarks/BookmarksManager.py Sat Mar 24 16:10:48 2012 +0100 @@ -20,6 +20,7 @@ from .DefaultBookmarks import DefaultBookmarks from .XbelReader import XbelReader from .XbelWriter import XbelWriter +from .NsHtmlWriter import NsHtmlWriter from .BookmarksImportDialog import BookmarksImportDialog from Utilities.AutoSaver import AutoSaver @@ -319,7 +320,9 @@ None, self.trUtf8("Export Bookmarks"), "eric5_bookmarks.xbel", - self.trUtf8("XBEL bookmarks (*.xbel);;XBEL bookmarks (*.xml)")) + self.trUtf8("XBEL bookmarks (*.xbel);;" + "XBEL bookmarks (*.xml);;" + "HTML Bookmarks (*.html)")) if not fileName: return @@ -329,7 +332,11 @@ if ex: fileName += ex - writer = XbelWriter() + ext = QFileInfo(fileName).suffix() + if ext == "html": + writer = NsHtmlWriter() + else: + writer = XbelWriter() if not writer.write(fileName, self.__bookmarkRootNode): E5MessageBox.critical(None, self.trUtf8("Exporting Bookmarks"),