-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add trailing nl for display(::TextDisplay, ...)
#43787
Conversation
display(::TextDisplay, ...)
|
Thanks, I forgot to test the |
The change itself may be reasonable, but it's going to break all the code that uses |
I would be interested in learning more about code that uses |
I use Here is my package where this change broke the test suite: |
I guess you should use |
|
IMO having a consistent behavior for Isn't |
It gives a different output: julia> show(stdout, [1,2,3])
[1, 2, 3]
julia> show(stdout, "text/plain", [1,2,3])
3-element Vector{Int64}:
1
2
3
julia> display([1,2,3])
3-element Vector{Int64}:
1
2
3
julia> show(stdout, Dict("key" => "value"))
Dict("key" => "value")
julia> show(stdout, "text/plain", Dict("key" => "value"))
Dict{String, String} with 1 entry:
"key" => "value"
julia> display(Dict("key" => "value"))
Dict{String, String} with 1 entry:
"key" => "value"
|
I agree that it is painful to fix these things. But defining |
My point is that it is not a bugfix but a breaking change and should be treated as such. |
I'd say it's debatable whether it is a bug fix or a breaking change. |
Perhaps we should add something in Compat.jl? |
Fix #43766.
Test pass locally on
1.6.5
and1.7.1
builds onlinux
, let's checkCI
now ...It'd be great (if possible) to have this land in
1.6
and1.7
.