diff options
-rw-r--r-- | taexporthtml.py | 2 | ||||
-rw-r--r-- | taexportlogo.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/taexporthtml.py b/taexporthtml.py index dc18174..f0f49ae 100644 --- a/taexporthtml.py +++ b/taexporthtml.py @@ -78,6 +78,8 @@ charset=UTF-8\">\n", ""), show = 0 tp1, tp2, tp3, tp8, tp6, tp7 = 0,0,0,0,0,0 for d in data: + if type(d) == type((1,2)): + (d,b) = d if type(d) is float or type(d) is int: d = str(d) # convert floats and ints to strings # transalate some Turtle Art blocks into HTML diff --git a/taexportlogo.py b/taexportlogo.py index d0207ee..e646234 100644 --- a/taexportlogo.py +++ b/taexportlogo.py @@ -113,6 +113,8 @@ tasetshade :shade \r" refbox = 0 myvar = "" for d in data: + if type(d) == type((1,2)): + (d,b) = d if type(d) is float: if namedbox == 1: myvar += str(d) |