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

multi-line list entry -> subsequent entries printed w/ extra newlines #6650

Closed
ihnorton opened this issue Apr 26, 2014 · 5 comments
Closed
Labels
stdlib:REPL Julia's REPL (Read Eval Print Loop)

Comments

@ihnorton
Copy link
Member

julia> n = ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
       "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
       "cccccccccccccccccccccccccccc"]
3-element Array{ASCIIString,1}:
 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"   

 "cccccccccccccccccccccccccccc"                                                                                                                                                                                   


@tkelman
Copy link
Contributor

tkelman commented Apr 26, 2014

I've seen this with arrays of Dicts as well.

@quinnj
Copy link
Member

quinnj commented Aug 14, 2014

I see this at the repl, but not in IJulia.

@quinnj quinnj added the REPL label Aug 14, 2014
@ggggggggg
Copy link
Contributor

I followed the code calls to print_matrix which calls A=alignment(...), then calls print_matrix_row with A as an argument. alignment decides how much space each element get, and they all get the same amount of space.

Seems related to #5709.

@ihnorton
Copy link
Member Author

ggggggggg's explanation makes sense.

@tkelman
Copy link
Contributor

tkelman commented Sep 16, 2016

This was also the cause of #11056, and I think we should revisit the "all get the same amount of space" part of this as it leads to a lot of wasted space and ugly output in many situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

4 participants