mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-19 09:30:58 +02:00
Attachments tutorial bugfixes.
This commit is contained in:
@@ -73,7 +73,10 @@ def processFile(infile, outfile=None, imgroot=""):
|
||||
elif in_script:
|
||||
if line == "```":
|
||||
in_script = False
|
||||
imgfile = os.path.join(imgroot, "{}_{}.png".format(fileroot, imgnum))
|
||||
fext = "png"
|
||||
if any(x in extyp for x in ("Anim", "Spin")):
|
||||
fext = "gif"
|
||||
imgfile = os.path.join(imgroot, "{}_{}.{}".format(fileroot, imgnum, fext))
|
||||
imgmgr.new_request(
|
||||
fileroot+".md", linenum,
|
||||
imgfile, script, extyp,
|
||||
|
Reference in New Issue
Block a user