src/eric7/WebBrowser/Bookmarks/NsHtmlWriter.py

branch
eric7
changeset 10436
f6881d10e995
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
--- a/src/eric7/WebBrowser/Bookmarks/NsHtmlWriter.py	Fri Dec 22 13:57:47 2023 +0100
+++ b/src/eric7/WebBrowser/Bookmarks/NsHtmlWriter.py	Fri Dec 22 17:24:07 2023 +0100
@@ -32,10 +32,13 @@
         """
         Public method to write an Netscape HTML bookmark file.
 
-        @param fileNameOrDevice name of the file to write (string)
+        @param fileNameOrDevice name of the file to write
+        @type str
             or device to write to (QIODevice)
-        @param root root node of the bookmark tree (BookmarkNode)
-        @return flag indicating success (boolean)
+        @param root root node of the bookmark tree
+        @type BookmarkNode
+        @return flag indicating success
+        @rtype bool
         """
         if isinstance(fileNameOrDevice, QIODevice):
             f = fileNameOrDevice
@@ -51,8 +54,10 @@
         """
         Private method to write an Netscape HTML bookmark file.
 
-        @param root root node of the bookmark tree (BookmarkNode)
-        @return flag indicating success (boolean)
+        @param root root node of the bookmark tree
+        @type BookmarkNode
+        @return flag indicating success
+        @rtype bool
         """
         self.__dev.write(
             "<!DOCTYPE NETSCAPE-Bookmark-file-1>\n"
@@ -78,8 +83,10 @@
         """
         Private method to write an entry for a node.
 
-        @param node reference to the node to be written (BookmarkNode)
-        @param indent size of the indentation (integer)
+        @param node reference to the node to be written
+        @type BookmarkNode
+        @param indent size of the indentation
+        @type int
         """
         if node.type() == BookmarkNode.Folder:
             self.__writeFolder(node, indent)
@@ -92,7 +99,8 @@
         """
         Private method to write a separator.
 
-        @param indent size of the indentation (integer)
+        @param indent size of the indentation
+        @type int
         """
         self.__dev.write(" " * indent)
         self.__dev.write("<HR>\n")
@@ -101,8 +109,10 @@
         """
         Private method to write a bookmark node.
 
-        @param node reference to the node to be written (BookmarkNode)
-        @param indent size of the indentation (integer)
+        @param node reference to the node to be written
+        @type BookmarkNode
+        @param indent size of the indentation
+        @type int
         """
         added = (
             ' ADD_DATE="{0}"'.format(node.added.toTime_t())
@@ -139,8 +149,10 @@
         """
         Private method to write a bookmark node.
 
-        @param node reference to the node to be written (BookmarkNode)
-        @param indent size of the indentation (integer)
+        @param node reference to the node to be written
+        @type BookmarkNode
+        @param indent size of the indentation
+        @type int
         """
         folded = "" if node.expanded else " FOLDED"
 

eric ide

mercurial