Print redirects differently
This commit is contained in:
parent
0d4087fdde
commit
d1a80a6ae6
1 changed files with 5 additions and 1 deletions
|
|
@ -151,7 +151,11 @@ pub fn path(datafile: &Path, from: &str, to: &str) -> io::Result<()> {
|
|||
println!("Path found:");
|
||||
for page_idx in path {
|
||||
let page = &pages[page_idx as usize];
|
||||
println!(" - {}", page.data.title);
|
||||
if page.data.redirect {
|
||||
println!(" v {}", page.data.title);
|
||||
} else {
|
||||
println!(" - {}", page.data.title);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
println!("No path found");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue