--- a/eric5_doc.py Fri Nov 01 15:48:48 2013 +0100 +++ b/eric5_doc.py Sun Nov 03 15:58:22 2013 +0100 @@ -131,14 +131,18 @@ """ Function to show the version information. """ - print("""eric5_doc {0} - -Eric5 API documentation generator. - -Copyright (c) 2003-2013 Detlev Offenbach <detlev@die-offenbachs.de> -This is free software; see the LICENSE.GPL3 for copying conditions. -There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A -PARTICULAR PURPOSE.""".format(Version)) + print( + """eric5_doc {0}\n""" + """\n""" + """Eric5 API documentation generator.\n""" + """\n""" + """Copyright (c) 2003-2013 Detlev Offenbach""" + """ <detlev@die-offenbachs.de>\n""" + """This is free software; see the LICENSE.GPL3 for copying""" + """ conditions.\n""" + """There is NO warranty; not even for MERCHANTABILITY or FITNESS""" + """ FOR A\n""" + """PARTICULAR PURPOSE.""".format(Version)) sys.exit(1) @@ -162,7 +166,7 @@ "create-qhp", "qhp-outdir=", "qhp-namespace=", "qhp-virtualfolder=", "qhp-filtername=", "qhp-filterattribs=", "qhp-title=", "create-qhc", - ]) + ]) except getopt.error: usage() @@ -259,9 +263,9 @@ usage() if qtHelpCreation and \ - (qtHelpNamespace == "" or \ - qtHelpFolder == "" or '/' in qtHelpFolder or \ - qtHelpTitle == ""): + (qtHelpNamespace == "" or + qtHelpFolder == "" or '/' in qtHelpFolder or + qtHelpTitle == ""): usage() if qtHelpCreation: @@ -307,7 +311,7 @@ except EnvironmentError: sys.stderr.write( "Could not create QtHelp output directory {0}.".format( - qtHelpOutputDir)) + qtHelpOutputDir)) sys.exit(2) else: qtHelpOutputDir = os.getcwd()