Fix for numeric var types creating an error.
authorIan Thompson <quornian@googlemail.com>
Sun, 17 Aug 2008 10:08:38 +0000 (10:08 +0000)
committerIan Thompson <quornian@googlemail.com>
Sun, 17 Aug 2008 10:08:38 +0000 (10:08 +0000)
release/scripts/bpymodules/BPyTextPlugin.py

index e7c181387ddade5c4bfa7cf7af8498e25101a0f2..5e38725b75fda6083bd7e23c8de8cbbe7aa6c80f 100644 (file)
@@ -482,6 +482,7 @@ def parse_text(txt):
                        elif var1_step == 4:
                                var_type = None
                                if type == NUMBER:
+                                       close = end[1]
                                        if text.find('.') != -1: var_type = float
                                        else: var_type = int
                                elif type == STRING: