diff options
Diffstat (limited to 'calculate.py')
-rw-r--r-- | calculate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calculate.py b/calculate.py index 3b40242..047c6a8 100644 --- a/calculate.py +++ b/calculate.py @@ -181,7 +181,7 @@ class Equation: self.append_with_superscript_tags(buf, eqnstr, tagbignarrow) # Add result - if type(self.result) is types.StringType: + if type(self.result) in (types.StringType, types.UnicodeType): resstr = str(self.result) buf.insert_with_tags(buf.get_end_iter(), resstr, tagsmallnarrow, tagjustright) |