From 881011d05777d551fb065b63ffb11d1c039631db Mon Sep 17 00:00:00 2001 From: Wolfgang Nowak Date: Sun, 18 Apr 2021 20:43:19 +0200 Subject: [PATCH] Shortened the head section. v0.04 --- webgen.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/webgen.py b/webgen.py index d7bc7ed..2efe3cf 100755 --- a/webgen.py +++ b/webgen.py @@ -2,6 +2,7 @@ import sys, os, re, markdown, datetime +# Getoptions try: parameters = sys.argv[1] except: @@ -36,26 +37,18 @@ else: html_out_file = sys.stdout title_of_text = mark_down_file - head1 = ( - '\n\ -\n\ -\n\ -\n\ -' + '<!DOCTYPE HTML>\n\<html>\n\<head>\n\ +<meta http-equiv="content-type" content="text/html; charset=UTF-8">\n\<title>' + title_of_text + '\n\ -\n\ -\n\ \n\ \n\ \n\ -