webgen v4.0.2 + Leere Zeile eingefügt

This commit is contained in:
Wolfgang Nowak 2022-06-11 15:55:23 +02:00
parent eebdd7bbc8
commit 3060842731

View file

@ -52,6 +52,9 @@ def edit(headline):
if not editor:
editor = "vim"
subprocess.call([editor, headline])
# spellcheck = os.getenv("SPELLCHECK")
# if spellcheck:
# subprocess.call([spellcheck, " -c ", headline])
return headline
@ -110,6 +113,7 @@ def selectfile():
return sourcefile, targetfile, headline
def mkdirindex(filesdir, indexfilename, filesdirheadline):
"""Dig the files-directory and generate an index."""
@ -153,7 +157,6 @@ def mkdirindex(filesdir, indexfilename, filesdirheadline):
return linecounter
# Parse arguments "--html", "--stdout" and "Some Headline"
# there are 3 parameters. if --html is given, the fileending will be .html.
# Else, if stdout is choosen there can be no fileending, but it will still contain html
@ -228,6 +231,7 @@ head1 = (
# Some fancy css for minimalistic terminal style
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>'