@@ -300,7 +300,7 @@ function Base.show(io::IO, s::Series)
300300 fmt = Core. get_format_codes (io)
301301 print (io, fmt. name, " Series" , fmt. reset, " (" )
302302 print (io, fmt. label, repr (s. label), fmt. reset, " , " )
303- print (io, fmt. value, length (s. x), fmt. reset, " pts)" )
303+ return print (io, fmt. value, length (s. x), fmt. reset, " pts)" )
304304end
305305
306306"""
@@ -330,7 +330,7 @@ See also: `Base.show`
330330"""
331331function Base. show (io:: IO , h:: HLine )
332332 fmt = Core. get_format_codes (io)
333- print (io, fmt. name, " HLine" , fmt. reset, " (" , fmt. value, h. value, fmt. reset, " )" )
333+ return print (io, fmt. name, " HLine" , fmt. reset, " (" , fmt. value, h. value, fmt. reset, " )" )
334334end
335335
336336"""
@@ -357,7 +357,7 @@ See also: `Base.show`
357357"""
358358function Base. show (io:: IO , v:: VLine )
359359 fmt = Core. get_format_codes (io)
360- print (io, fmt. name, " VLine" , fmt. reset, " (" , fmt. value, v. value, fmt. reset, " )" )
360+ return print (io, fmt. name, " VLine" , fmt. reset, " (" , fmt. value, v. value, fmt. reset, " )" )
361361end
362362
363363"""
@@ -386,7 +386,7 @@ function Base.show(io::IO, ax::Axes)
386386 fmt = Core. get_format_codes (io)
387387 print (io, fmt. name, " Axes" , fmt. reset, " (" )
388388 print (io, fmt. label, repr (ax. title), fmt. reset, " , " )
389- print (io, fmt. value, length (ax. series), fmt. reset, " series)" )
389+ return print (io, fmt. value, length (ax. series), fmt. reset, " series)" )
390390end
391391
392392"""
@@ -398,7 +398,7 @@ showing its series and decorations.
398398See also: `Base.show`
399399"""
400400function Base. show (io:: IO , :: MIME"text/plain" , ax:: Axes )
401- _show_axes (io, ax, " " )
401+ return _show_axes (io, ax, " " )
402402end
403403
404404"""
@@ -467,7 +467,7 @@ function Base.show(io::IO, leaf::Leaf)
467467 fmt = Core. get_format_codes (io)
468468 print (io, fmt. name, " Leaf" , fmt. reset, " (" )
469469 show (io, leaf. axes)
470- print (io, " )" )
470+ return print (io, " )" )
471471end
472472
473473"""
@@ -478,7 +478,7 @@ Pretty tree-style display of a [`Leaf`](@ref).
478478See also: `Base.show`
479479"""
480480function Base. show (io:: IO , :: MIME"text/plain" , leaf:: Leaf )
481- _show_node (io, leaf, " " )
481+ return _show_node (io, leaf, " " )
482482end
483483
484484"""
@@ -491,7 +491,7 @@ See also: `Base.show`
491491function Base. show (io:: IO , box:: HBox )
492492 fmt = Core. get_format_codes (io)
493493 print (io, fmt. name, " HBox" , fmt. reset, " (" )
494- print (io, fmt. value, length (box. children), fmt. reset, " children)" )
494+ return print (io, fmt. value, length (box. children), fmt. reset, " children)" )
495495end
496496
497497"""
@@ -503,7 +503,7 @@ showing its children.
503503See also: `Base.show`
504504"""
505505function Base. show (io:: IO , :: MIME"text/plain" , box:: HBox )
506- _show_node (io, box, " " )
506+ return _show_node (io, box, " " )
507507end
508508
509509"""
@@ -516,7 +516,7 @@ See also: `Base.show`
516516function Base. show (io:: IO , box:: VBox )
517517 fmt = Core. get_format_codes (io)
518518 print (io, fmt. name, " VBox" , fmt. reset, " (" )
519- print (io, fmt. value, length (box. children), fmt. reset, " children)" )
519+ return print (io, fmt. value, length (box. children), fmt. reset, " children)" )
520520end
521521
522522"""
@@ -528,7 +528,7 @@ showing its children.
528528See also: `Base.show`
529529"""
530530function Base. show (io:: IO , :: MIME"text/plain" , box:: VBox )
531- _show_node (io, box, " " )
531+ return _show_node (io, box, " " )
532532end
533533
534534"""
@@ -541,7 +541,7 @@ function _show_node(io::IO, leaf::Leaf, prefix::String)
541541 fmt = Core. get_format_codes (io)
542542 print (io, fmt. name, " Leaf" , fmt. reset)
543543 print (io, " \n " , prefix, " └─ " )
544- _show_axes (io, leaf. axes, prefix * " " )
544+ return _show_axes (io, leaf. axes, prefix * " " )
545545end
546546
547547function _show_node (io:: IO , node:: Union{HBox,VBox} , prefix:: String )
@@ -578,7 +578,7 @@ function Base.show(io::IO, fig::Figure)
578578 print (io, fmt. label, repr (fig. title), fmt. reset, " , " )
579579 end
580580 show (io, fig. root)
581- print (io, " )" )
581+ return print (io, " )" )
582582end
583583
584584"""
@@ -599,5 +599,5 @@ function Base.show(io::IO, ::MIME"text/plain", fig::Figure)
599599 print (io, " size: " , fmt. value, fig. size, fmt. reset)
600600 end
601601 print (io, " \n └─ " )
602- _show_node (io, fig. root, " " )
602+ return _show_node (io, fig. root, " " )
603603end
0 commit comments