diff --git a/webgen.py b/webgen.py index 3ccac4d..cd7d427 100755 --- a/webgen.py +++ b/webgen.py @@ -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 @@ -92,7 +95,7 @@ def selectfile(): headline = re.sub("\.md$", "", tabelle[int(ausgewaehlt[1])][1]) print(headline) -# a = input(yellow + "What do we dooo here?") + # a = input(yellow + "What do we dooo here?") # if the searched filename doesnt match an existing file we construct a new one if len(glob.glob(sourcedir + headline + ".md")) == 0: @@ -110,6 +113,7 @@ def selectfile(): return sourcefile, targetfile, headline + def mkdirindex(filesdir, indexfilename, filesdirheadline): """Dig the files-directory and generate an index.""" @@ -127,7 +131,7 @@ def mkdirindex(filesdir, indexfilename, filesdirheadline): body1 += '