Skip to content

Commit 94094f9

Browse files
committed
only edit the string method
1 parent 88d68a1 commit 94094f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/show.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,6 +3028,8 @@ end
30283028

30293029
nocolor(io::IO) = IOContext(io, :color => false)
30303030
alignment_from_show(io::IO, x::Any) =
3031+
textwidth(sprint(show, x, context=nocolor(io), sizehint=0))
3032+
alignment_from_show(io::IO, x::AbstractString) =
30313033
textwidth(sprint(show, MIME"text/plain"(), x, context=nocolor(io), sizehint=0))
30323034

30333035
"""

0 commit comments

Comments
 (0)