From 4c031d4fc68744fe6140fe9bd197a94c0bdb1158 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 06 Feb 2010 14:09:14 +0000 Subject: tuple-enabled --- 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) -- cgit v0.9.1