Prevent double ups of black lines in printing

This commit is contained in:
TEC 2024-04-12 16:35:54 +08:00
parent 4e23083d0f
commit 7dbce9529e
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
2 changed files with 2 additions and 4 deletions

View File

@ -76,7 +76,6 @@ function about(io::IO, type::Type)
columnlist(io, fieldinfo, spacing=3)
end
if type isa DataType
println(io)
memorylayout(io, type)
end
end
@ -123,9 +122,9 @@ function memorylayout(io::IO, type::DataType)
end
push!(bars, bar)
end
println(io)
multirow_wrap(io, permutedims(hcat(bars, descs)))
if any(i -> i.ispointer, si)
print(io, styled"\n {about_pointer,bold:*} = {about_pointer:Pointer} {light:(8B)}")
println(io, styled"\n {about_pointer,bold:*} = {about_pointer:Pointer} {light:(8B)}")
end
println(io)
end

View File

@ -111,7 +111,6 @@ function memorylayout(io::IO, value::T) where {T}
' ', rpad(struncate(brepr, reprwidth, styled" {shadow:…} "), reprwidth),
' ', face!(struncate(shown, showwidth, styled" {shadow:…} "), face))
end
println(io)
memorylayout(io, T)
end