Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fperez opened this issue Sep 13, 2011 · 1 comment
Closed

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

fperez opened this issue Sep 13, 2011 · 1 comment
Milestone

Comments

@fperez
Copy link
Member

fperez commented Sep 13, 2011

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
@ellisonbg
Copy link
Member

Fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants