Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't strip leading whitespace in repr() in notebook #785

Closed
fperez opened this Issue · 1 comment

2 participants

Fernando Perez Brian E. Granger
Fernando Perez
Owner

The problem can be seen by putting this in a cell:

class f(object):
    def __repr__(self):
        return "    hi" 
    
f()

The leading whitespace in front of 'hi' is not respected. The terminal does it correctly:

In [2]: f()
Out[2]:     hi
Brian E. Granger
Owner

Fixed in master.

Brian E. Granger ellisonbg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.