details: http://www.bx.psu.edu/hg/galaxy/rev/ea29f33390d3 changeset: 2894:ea29f33390d3 user: Nate Coraor <nate@bx.psu.edu> date: Tue Oct 20 10:39:30 2009 -0400 description: Fix setting the peek when a line is already unicode (when does this happen?) 1 file(s) affected in this change: lib/galaxy/datatypes/data.py diffs (15 lines): diff -r 55d479c8d592 -r ea29f33390d3 lib/galaxy/datatypes/data.py --- a/lib/galaxy/datatypes/data.py Mon Oct 19 12:05:19 2009 -0400 +++ b/lib/galaxy/datatypes/data.py Tue Oct 20 10:39:30 2009 -0400 @@ -136,7 +136,10 @@ line = line.strip() if not line: continue - out.append( '<tr><td>%s</td></tr>' % escape( unicode( line, 'utf-8' ) ) ) + if type( line ) is unicode: + out.append( '<tr><td>%s</td></tr>' % escape( line ) ) + else: + out.append( '<tr><td>%s</td></tr>' % escape( unicode( line, 'utf-8' ) ) ) out.append( '</table>' ) out = "".join( out ) except Exception, exc: