@@ -60,7 +60,7 @@ printnode(io::IO, f::ROOTFile) = print(io, f.filename)
6060printnode (io:: IO , f:: ROOTDirectory ) = print (io, " $(f. name) (TDirectory)" )
6161printnode (io:: IO , k:: TKeyNode ) = print (io, " $(k. name) ($(k. classname) )" )
6262
63- Base. show (tree:: LazyTree ; kwargs... ) = _show (stdout , tree; crop = :both , kwargs... )
63+ Base. show (tree:: LazyTree ; kwargs... ) = _show (stdout , tree; kwargs... )
6464Base. show (io:: IO , tree:: LazyTree ; kwargs... ) = _show (io, tree; kwargs... )
6565Base. show (io:: IO , :: MIME"text/plain" , tree:: LazyTree ) = _show (io, tree)
6666function _show (io:: IO , tree:: LazyTree ; kwargs... )
@@ -69,16 +69,13 @@ function _show(io::IO, tree::LazyTree; kwargs...)
6969 PrettyTables. pretty_table (
7070 io,
7171 Tables. columns (tree);
72- header = _hs,
72+ column_labels = _hs,
7373 alignment= :l ,
74- vlines= [1 ],
75- hlines= [:header ],
7674 reserved_display_lines= 2 ,
77- row_number_alignment= :l ,
78- row_number_column_title= " Row" ,
79- show_row_number= true ,
75+ row_number_column_alignment = :l ,
76+ show_row_number_column= true ,
8077 compact_printing= false ,
81- formatters= (v, i, j) -> _treeformat (v, _ds[2 ] ÷ min (8 , length (_hs[1 ]))),
78+ formatters= [ (v, i, j) -> _treeformat (v, _ds[2 ] ÷ min (8 , length (_hs[1 ])))] ,
8279 display_size= (min (_ds[1 ], 40 ), min (_ds[2 ], 160 )),
8380 kwargs...
8481 )
@@ -131,14 +128,13 @@ function Base.show(io::IO, ::MIME"text/html", tree::LazyTree)
131128 PrettyTables. pretty_table (
132129 io,
133130 t;
134- header = _hs,
131+ column_labels = _hs,
135132 alignment= :l ,
136- row_number_column_title = " " ,
137- show_row_number = true ,
133+ row_number_column_alignment = :l ,
134+ show_row_number_column = true ,
138135 compact_printing= false ,
139- formatters= (v, i, j) -> _treeformat (v, 100 ),
140- tf = PrettyTables. HtmlTableFormat (css = """ th { color: #000; background-color: #fff; }""" ),
141- backend= Val (:html ),
136+ formatters= [(v, i, j) -> _treeformat (v, 100 )],
137+ backend= :html ,
142138 )
143139 nothing
144140end
@@ -147,7 +143,7 @@ function _make_header(t)
147143 pn = propertynames (t)
148144 header = _symtup2str (pn)
149145 subheader = _symtup2str (eltype .(values (Tables. columns (t))))
150- ( header, subheader)
146+ [ header, subheader]
151147end
152148function _treeformat (val, trunc)
153149 s = if val isa AbstractArray{T} where T<: Integer
0 commit comments