Skip to content

Commit

Permalink
ENH: pprint_thing will escape embedded tabs in returned string #2038
Browse files Browse the repository at this point in the history
  • Loading branch information
y-p authored and wesm committed Nov 17, 2012
1 parent 33ef720 commit 2cc0c16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pandas/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,8 @@ def pprint_thing(thing, _nest_lvl=0):
# either utf-8 or we replace errors
result = str(thing).decode('utf-8', "replace")

result=result.replace("\t",r'\t') # escape tabs

return unicode(result) # always unicode


Expand Down

0 comments on commit 2cc0c16

Please sign in to comment.