Skip to content

Commit

Permalink
Fix tree rendering by adding padding used by packaging status icons
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Oct 30, 2024
1 parent 9d01055 commit 7f9cb93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,16 @@ fn print_dependencies<'a>(

if let Prefix::Indent = prefix {
if let Some(name) = name {
// start with padding used by packaging status icons
print!(" ");

// print tree graph parts
for continues in &**levels_continue {
let c = if *continues { symbols.down } else { " " };
print!("{c} ");
}

// print the actual texts
println!("{name}");
}
}
Expand Down

0 comments on commit 7f9cb93

Please sign in to comment.