make file easier to parse (move title to end, enclose it in quotes)
authorSvenne Krap <svenne@krap.dk>
Sun, 1 Jul 2012 11:14:11 +0000 (13:14 +0200)
committerSvenne Krap <svenne@krap.dk>
Sun, 1 Jul 2012 11:14:11 +0000 (13:14 +0200)
save_firefox_urls.py

index e030ae3904a95850e4e30895a32ba3717264315c..57cf0cf6156bc1579ecaf55652262a8f332b22d4 100755 (executable)
@@ -68,9 +68,9 @@ for w in range(windows):
                 continue
             print ("    Found:")
             print ("      Entry: " + str(e))
-            print ("      Title: " + title)
             print ("      Url  : " + url)
-            outfp.write( str(w) + " " + str(t) + " " + str(e) + " " + title + " " + url + "\n")
+            print ("      Title: " + title)
+            outfp.write( str(w) + " " + str(t) + " " + str(e) + " " + url + " \"" + title + "\"\n")
 
 outfp.close()
 print ("Saved as " + outfile)