webgen v3.2 -smaller errors removed

This commit is contained in:
Wolfgang Nowak 2021-10-29 01:36:02 +02:00
parent 446c70bcb5
commit e9d6978e6f

View file

@ -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 <RETURN> to continue or <CTRL-C> to stop: ")
edit(headlinemd)
@ -101,14 +101,11 @@ pre { white-space: pre-wrap; font-family: monospace; color: #00f020; font-backgr
style_fn = '<link rel="stylesheet" type="text/css" href="/vimstyles.css">'
head2 = "</head><body>\n"
# beginning and end of the text, edit or empty as you like, but dont delete
beginningoftext = "**moin**\n\n"
endoftext = "---\n"
body1 = '<a href="./">Back</a>'
foot = "</body> </html>\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: