Skip to content

Commit 0940421

Browse files
committed
v2.1.4
1 parent 61478f4 commit 0940421

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "HierarchicalUtils"
22
uuid = "f9ccea15-0695-44b9-8113-df7c26ae4fa9"
33
authors = ["Simon Mandlik <simon.mandlik@gmail.com>"]
4-
version = "2.1.3"
4+
version = "2.1.4"
55

66
[deps]
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"

src/printing.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ end
131131

132132
printtree(n; kwargs...) = printtree(stdout, n; kwargs...)
133133
function printtree(io::IO, n; trav::Bool=false, htrunc::Number=Inf, vtrunc::Number=Inf,
134-
limit::Bool=get(io, :limit, true), breakline::Bool=true, comments::Bool=true)
134+
limit::Bool=get(io, :limit, false), breakline::Bool=true, comments::Bool=true)
135135
@nospecialize
136136
@assert htrunc 0 "htrunc must be ≥ 0"
137137
@assert vtrunc 0 "vtrunc must be ≥ 0"
138138
H, W = limit ? displaysize(io) : (Inf, Inf)
139-
# 3 for "julia>" prompts + 1 for breakline
140-
H -= 3 + breakline
139+
# for "julia>" prompts and newline
140+
H -= 4
141141
# print at least one node + ellipsis
142142
H = max(H, 2)
143143
# print at least three characters before ellipsis

0 commit comments

Comments
 (0)