Fix importer script to output bookmarks in the right format for qutebrowser to use

This commit is contained in:
Clayton Craft 2016-03-24 18:58:08 -07:00
parent 58363d66ce
commit 81ce9b818f

View File

@ -61,7 +61,7 @@ def import_netscape_bookmarks(bookmarks_file):
bookmarks = [] bookmarks = []
for tag in html_tags: for tag in html_tags:
if tag['href'] not in bookmarks: if tag['href'] not in bookmarks:
bookmarks.append('{tag.string} {tag[href]}'.format(tag=tag)) bookmarks.append('{tag[href]} {tag.string}'.format(tag=tag))
for bookmark in bookmarks: for bookmark in bookmarks:
print(bookmark) print(bookmark)