minor bugfixes

This commit is contained in:
Michael Clemens 2018-03-26 12:23:04 +02:00
parent 54a0d7b858
commit 2f4064bcfc
2 changed files with 10 additions and 8 deletions

View File

@ -11,5 +11,5 @@ sort_rules = True
toc = True
# Configure inclusion of images
images = False
images = True
imagepath = images

View File

@ -90,6 +90,8 @@ def sortxml(xmlfile):
def addimage(rulename):
out = ""
if not os.path.exists(imagepath):
os.makedirs(imagepath)
imagefile = imagepath + "/" + rulename + ".png"
imagefile = imagefile.replace(" ", "_")
out = "![](" + imagefile + ")\n\n\n"