Docs gen fixes.

This commit is contained in:
Revar Desmera
2019-05-12 03:46:14 -07:00
parent 51403aee33
commit 3e38451033
2 changed files with 3 additions and 2 deletions

View File

@@ -415,7 +415,8 @@ class LeafNode(object):
out.append(" " + line)
out.append("")
san_name = re.sub(r"[^A-Za-z0-9_]", "", self.name)
imgfile = "{0}{1}.{2}".format(
imgfile = "{}{}{}.{}".format(
"f_" if self.leaftype == "Function" else "",
san_name,
("_%d" % exnum) if exnum > 1 else "",
"gif" if "Spin" in extype else "png"