webgen v4.0.8 Added Style for HR-Tags, reformatted
This commit is contained in:
parent
bf42a1b6c9
commit
8a66b31197
1 changed files with 6 additions and 6 deletions
12
webgen.py
12
webgen.py
|
@ -24,14 +24,14 @@ spellcheck = "aspell"
|
|||
spellcheckparam = "-c"
|
||||
|
||||
# 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,
|
||||
# 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
|
||||
|
||||
markdown.Markdown.extras = ["footnotes","break-on-newline"]
|
||||
markdown.Markdown.extras = ["footnotes", "break-on-newline"]
|
||||
|
||||
fileending = ""
|
||||
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 += '<div class="Statement"> Some files. Maybe useful or not.</div> '
|
||||
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
|
||||
|
||||
dirindexfile = open(filesdir + indexfilename, "w")
|
||||
|
@ -261,7 +261,7 @@ head1 = (
|
|||
style_fn = '<link rel="stylesheet" type="text/css" href="/vimstyles.css">'
|
||||
head2 = "</head><body>\n"
|
||||
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
|
||||
html_out_file.write(head1 + style_fn + head2 + body1)
|
||||
|
|
Loading…
Reference in a new issue