aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/comment.py')
-rw-r--r--libbe/comment.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbe/comment.py b/libbe/comment.py
index 02bcc93..17daf62 100644
--- a/libbe/comment.py
+++ b/libbe/comment.py
@@ -308,7 +308,9 @@ class Comment(Tree, settings_object.SavedSettingsObject):
value = getattr(self, setting)
if value == None:
return ""
- return str(value)
+ if type(value) not in types.StringTypes:
+ return str(value)
+ return value
def xml(self, indent=0, shortname=None):
"""