Skip to content

Commit 982967f

Browse files
committed
debug: correct treeview padding in info2debugstr
1 parent c53b864 commit 982967f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/general.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ function info2debugstr(info)
5656
end
5757
if haskey(info, :sol)
5858
split_sol = split(string(info[:sol]), "\n")
59-
solstr = join((lpad(line, length(line) + 2) for line in split_sol), "\n", "")
60-
mystr *= " :sol => \n"*solstr
59+
# Add the treeview prefix to each line
60+
solstr = join((" " * line for line in split_sol), "\n")
61+
mystr *= " :sol => \n" * solstr * "\n" # Ensure a trailing newline
6162
end
6263
return mystr
6364
end

0 commit comments

Comments
 (0)