Beautified
This commit is contained in:
parent
058ae8ae38
commit
52a62d7dcf
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue