Helpviewer/Bookmarks/BookmarksImporters/SafariImporter.py

changeset 3002
6ffc581f00f1
parent 2954
bf0215fe12d1
child 3022
57179e4cdadd
child 3057
10516539f238
--- a/Helpviewer/Bookmarks/BookmarksImporters/SafariImporter.py	Wed Oct 09 19:47:41 2013 +0200
+++ b/Helpviewer/Bookmarks/BookmarksImporters/SafariImporter.py	Thu Oct 10 18:35:45 2013 +0200
@@ -26,7 +26,8 @@
     @param id id of the browser ("chrome" or "chromium")
     @return tuple with an icon (QPixmap), readable name (string), name of
         the default bookmarks file (string), an info text (string),
-        a prompt (string) and the default directory of the bookmarks file (string)
+        a prompt (string) and the default directory of the bookmarks file
+        (string)
     @exception ValueError raised to indicate an invalid browser ID
     """
     if id == "safari":
@@ -41,9 +42,11 @@
             UI.PixmapCache.getPixmap("safari.png"),
             "Apple Safari",
             "Bookmarks.plist",
-            QCoreApplication.translate("SafariImporter",
-                """Apple Safari stores its bookmarks in the <b>Bookmarks.plist</b> """
-                """file. This file is usually located in"""),
+            QCoreApplication.translate(
+                "SafariImporter",
+                """Apple Safari stores its bookmarks in the"""
+                """ <b>Bookmarks.plist</b> file. This file is usually"""
+                """ located in"""),
             QCoreApplication.translate("SafariImporter",
                 """Please choose the file to begin importing bookmarks."""),
             standardDir,
@@ -136,4 +139,5 @@
                 
                 bookmark = BookmarkNode(BookmarkNode.Bookmark, rootNode)
                 bookmark.url = url
-                bookmark.title = child["URIDictionary"]["title"].replace("&", "&&")
+                bookmark.title = child["URIDictionary"]["title"]\
+                    .replace("&", "&&")

eric ide

mercurial