From 09e7e544dc30e3b449064826861f7623eddc3399 Mon Sep 17 00:00:00 2001 From: Michal Date: Sun, 24 Jul 2022 16:32:13 +0100 Subject: [PATCH] Fixed word wrap formatting in info function --- src/operations/info.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/operations/info.rs b/src/operations/info.rs index eebac49..5bb93b9 100644 --- a/src/operations/info.rs +++ b/src/operations/info.rs @@ -193,12 +193,12 @@ pub fn info(verbose: bool) { let table = if git_info { tabled::Table::new(&repos_git) .with(tabled::Style::modern()) - .with(tabled::Width::wrap(width as usize)) + .with(tabled::Width::wrap(width as usize).keep_words()) .to_string() } else { tabled::Table::new(&repos) .with(tabled::Style::modern()) - .with(tabled::Width::wrap(width as usize)) + .with(tabled::Width::wrap(width as usize).keep_words()) .to_string() }; @@ -215,8 +215,7 @@ pub fn info(verbose: bool) { println!("{}", table); if config.mode.workspace.is_some() && config.mode.workspace.as_ref().unwrap().git_info { info!( - "Key: \n \ - D: Dirty - Unstaged Changes \n \ + "D: Dirty - Unstaged Changes \n \ Pl: Pull - Changes at Remote \n \ Ps: Push - Unpushed Changes \n \ {}: Applies, {}: Does Not Apply",