--- a/eric6/DocumentationTools/QtHelpGenerator.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/DocumentationTools/QtHelpGenerator.py Sat May 01 14:27:20 2021 +0200 @@ -55,7 +55,7 @@ HelpCollectionFile = 'collection.qhc' -class QtHelpGenerator(object): +class QtHelpGenerator: """ Class implementing the QtHelp generator for the builtin documentation generator. @@ -175,8 +175,7 @@ joinext("index", ".html") or joinext("index-{0}".format(package), ".html")) for subpack in sorted(self.packages[package]["subpackages"]): - s += self.__generateSections(subpack, level + 1) - s += '\n' + s += self.__generateSections(subpack, level + 1) + '\n' for mod in sorted(self.packages[package]["modules"]): s += indent1 + '<section title="{0}" ref="{1}" />\n'.format( mod, joinext(mod, ".html")) @@ -220,7 +219,7 @@ if not basename.endswith("."): basename = "{0}.".format(basename) - sections = self.__generateSections("00index", 3) + sections = self.__generateSections("00index", level=3) filesList = sorted(e for e in os.listdir(self.htmlDir) if e.endswith('.html')) files = "\n".join(