diff --git a/webgen.py b/webgen.py index 0f8b760..c19d345 100755 --- a/webgen.py +++ b/webgen.py @@ -54,7 +54,7 @@ if outfile != sys.stdout: new_file_name = targetdir + creationtime + " " + headline + fileending else: new_file_name = "STDOUT" -print("You will edit now: ", headlinemd, "\n", "Outputfile= ", new_file_name) +print("You will edit now: ", headlinemd, "\nOutputfile= ", new_file_name) a = input("Press to continue or to stop: ") edit(headlinemd) @@ -101,14 +101,11 @@ pre { white-space: pre-wrap; font-family: monospace; color: #00f020; font-backgr style_fn = '' head2 = "\n" -# beginning and end of the text, edit or empty as you like, but dont delete -beginningoftext = "**moin**\n\n" -endoftext = "---\n" body1 = 'Back' foot = " \n" # write beginning of html-file -html_out_file.write(head1 + style_fn + head2 + beginningoftext + endoftext + body1) +html_out_file.write(head1 + style_fn + head2 + body1) # The centerpiece - read md-file, convert to html, add head and foot and write result with open(headlinemd, "r", encoding="utf-8") as infile: