Dear all, It seems that for an object obj, if repr(obj) contains a newline character, then a blank line is printed when evaluating obj in the Sage command line interface. I use SageMath 7.4 on Ubuntu 16.04.
To reproduce it, run Sage in the terminal and evaluate the following code. Extra blank lines are printed before outputs as below: ================================================== class Foo(object): def __repr__(self): return "foo" class Bar(object): def __repr__(self): return "bar\nbar" sage: identity_matrix(QQ, 2) [1 0] [0 1] sage: Foo() foo sage: Bar() bar bar ================================================== Best regards, Sho Takemori -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.