From 52a62d7dcf015b78842df0c639283dc62c8417f0 Mon Sep 17 00:00:00 2001 From: Wolfgang Nowak Date: Thu, 28 Oct 2021 18:56:02 +0200 Subject: [PATCH] Beautified --- webgen.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -