Skip to content

Commit

Permalink
Survive unicode chars in data when doing beautify output
Browse files Browse the repository at this point in the history
  • Loading branch information
JKrag committed Jan 9, 2014
1 parent bfc1ee3 commit 42a41cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion q
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def determine_max_col_lengths(m):
max_lengths = [0 for x in xrange(0,len(m[0]))]
for row_index in xrange(0,len(m)):
for col_index in xrange(0,len(m[0])):
new_len = len(str(m[row_index][col_index]))
new_len = len(unicode(m[row_index][col_index]))
if new_len > max_lengths[col_index]:
max_lengths[col_index] = new_len
return max_lengths
Expand Down

0 comments on commit 42a41cc

Please sign in to comment.