diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-02-06 14:09:14 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-02-06 14:09:14 (GMT) |
commit | 4c031d4fc68744fe6140fe9bd197a94c0bdb1158 (patch) | |
tree | aa70a54b132727539c570f7907306d7e3aff1d1b | |
parent | 4824059465223de7c21fc6108bd7a402b8431fe9 (diff) |
tuple-enabled
-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) |