Tweaked tutorial script to better display scripts.

This commit is contained in:
Revar Desmera 2020-03-24 00:18:33 -07:00
parent a3c917bfe9
commit 07d47f4ffc
2 changed files with 5 additions and 2 deletions

View file

@ -258,7 +258,10 @@ def processFile(infile, outfile=None, imgroot=""):
imgnum = 0
for line in f.readlines():
line = line.rstrip("\n")
outdata.append(line)
if line.startswith("```openscad"):
outdata.append("```openscad")
else:
outdata.append(line)
if in_script:
if line == "```":
in_script = False

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,219];
BOSL_VERSION = [2,0,220];
// Section: BOSL Library Version Functions