Skip to content

Commit d5d4581

Browse files
committed
Limit vertical height of individual states and parameters
1 parent 18f08dc commit d5d4581

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/systems/abstractsystem.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,9 @@ function Base.show(io::IO, ::MIME"text/plain", sys::AbstractSystem)
535535
if defs !== nothing
536536
val = get(defs, s, nothing)
537537
if val !== nothing
538-
print(io, " [defaults to $val]")
538+
print(io, " [defaults to ")
539+
show(IOContext(io, :compact=>true, :limit=>true, :displaysize=>(1,displaysize(io)[2])), val)
540+
print(io, "]")
539541
end
540542
end
541543
end
@@ -553,7 +555,9 @@ function Base.show(io::IO, ::MIME"text/plain", sys::AbstractSystem)
553555
if defs !== nothing
554556
val = get(defs, s, nothing)
555557
if val !== nothing
556-
print(io, " [defaults to $val]")
558+
print(io, " [defaults to ")
559+
show(IOContext(io, :compact=>true, :limit=>true, :displaysize=>(1,displaysize(io)[2])), val)
560+
print(io, "]")
557561
end
558562
end
559563
end

0 commit comments

Comments
 (0)