minor bugfixes
This commit is contained in:
parent
54a0d7b858
commit
2f4064bcfc
|
@ -11,5 +11,5 @@ sort_rules = True
|
||||||
toc = True
|
toc = True
|
||||||
|
|
||||||
# Configure inclusion of images
|
# Configure inclusion of images
|
||||||
images = False
|
images = True
|
||||||
imagepath = images
|
imagepath = images
|
||||||
|
|
|
@ -90,6 +90,8 @@ def sortxml(xmlfile):
|
||||||
def addimage(rulename):
|
def addimage(rulename):
|
||||||
|
|
||||||
out = ""
|
out = ""
|
||||||
|
if not os.path.exists(imagepath):
|
||||||
|
os.makedirs(imagepath)
|
||||||
imagefile = imagepath + "/" + rulename + ".png"
|
imagefile = imagepath + "/" + rulename + ".png"
|
||||||
imagefile = imagefile.replace(" ", "_")
|
imagefile = imagefile.replace(" ", "_")
|
||||||
out = "![](" + imagefile + ")\n\n\n"
|
out = "![](" + imagefile + ")\n\n\n"
|
||||||
|
|
Loading…
Reference in New Issue