webgen v4.0.8 Added Style for HR-Tags, reformatted

This commit is contained in:
Wolfgang Nowak 2022-09-16 09:42:09 +02:00
parent bf42a1b6c9
commit 8a66b31197

View file

@ -24,14 +24,14 @@ spellcheck = "aspell"
spellcheckparam = "-c" spellcheckparam = "-c"
# Configure Markdown, activate "break-on-newline" for letting a line end without havin to put doublespaces there. # Configure Markdown, activate "break-on-newline" for letting a line end without havin to put doublespaces there.
# #
# More options: # More options:
# break-on-newline, code-friendly, cuddled-lists, fenced-code-blocks, # break-on-newline, code-friendly, cuddled-lists, fenced-code-blocks,
# footnotes, header-ids, highlightjs-lang, html-classes, link-patterns, # footnotes, header-ids, highlightjs-lang, html-classes, link-patterns,
# markdown-in-html, numbering, pyshell, smarty-pants, spoiler, strike, # markdown-in-html, numbering, pyshell, smarty-pants, spoiler, strike,
# tag-friendly, tables, toc, use-file-vars, wiki-tables, xml # tag-friendly, tables, toc, use-file-vars, wiki-tables, xml
markdown.Markdown.extras = ["footnotes","break-on-newline"] markdown.Markdown.extras = ["footnotes", "break-on-newline"]
fileending = "" fileending = ""
locale.setlocale(locale.LC_ALL, "") locale.setlocale(locale.LC_ALL, "")
@ -153,7 +153,7 @@ def mkdirindex(filesdir, indexfilename, filesdirheadline):
body1 = '<a class="Statement" href="../">Back</a><br/><br/><hr>' body1 = '<a class="Statement" href="../">Back</a><br/><br/><hr>'
body1 += '<div class="Statement"> Some files. Maybe useful or not.</div> ' body1 += '<div class="Statement"> Some files. Maybe useful or not.</div> '
body1 += '<table border="0" class="Neutral">' body1 += '<table border="0" class="Neutral">'
foot = "</table><br/><strong>You can't avoid chaos.</strong><br/><hr></body> </html>\n" foot = '</table><br/><strong>You can\'t avoid chaos.</strong><br/><hr class="myhr" ></body> </html>\n'
linecounter = 0 linecounter = 0
dirindexfile = open(filesdir + indexfilename, "w") dirindexfile = open(filesdir + indexfilename, "w")
@ -261,7 +261,7 @@ head1 = (
style_fn = '<link rel="stylesheet" type="text/css" href="/vimstyles.css">' style_fn = '<link rel="stylesheet" type="text/css" href="/vimstyles.css">'
head2 = "</head><body>\n" head2 = "</head><body>\n"
body1 = '<a href="./">Back</a><blockquote><strong>Moin</strong></p>' body1 = '<a href="./">Back</a><blockquote><strong>Moin</strong></p>'
foot = "<br /><hr width=50% /></body> </html>\n" foot = '<br /><hr class="myhr" /></body> </html>\n'
# write beginning of html-file # write beginning of html-file
html_out_file.write(head1 + style_fn + head2 + body1) html_out_file.write(head1 + style_fn + head2 + body1)