diff --git a/webgen.py b/webgen.py index 0de0ba2..43f6e21 100755 --- a/webgen.py +++ b/webgen.py @@ -47,7 +47,7 @@ creationtimeheader = datetime.datetime.now().strftime("%Y-%m-%d %H:%M") if outfile != sys.stdout: new_file_name = targetdir + creationtime + " " + headline + fileending else: - new_file_name="STDOUT" + new_file_name = "STDOUT" print("You will edit now: ", headlinemd, "\n", "Outputfile= ", new_file_name) a = input("Press to continue or to stop: ") @@ -109,6 +109,5 @@ with open(headlinemd, "r", encoding="utf-8") as infile: html_out_file.close() # if it exists, return new filename to stdout, so some calling shellscript can use it. -if outfile!=sys.stdout: +if outfile != sys.stdout: print(new_file_name) -