Beautified

This commit is contained in:
Wolfgang Nowak 2021-10-28 18:56:02 +02:00
parent 058ae8ae38
commit 52a62d7dcf

View file

@ -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 <RETURN> to continue or <CTRL-C> 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)