refactor: Trim whitespace from end of each line in table output

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-08 18:53:54 -03:00
parent 9a6b0ceced
commit 935f829b42
5 changed files with 16 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ pub fn mode_list(
table.add_row(table_row);
}
println!("{}", table.trim_fmt().trim_end());
println!("{}", crate::modes::common::trim_lines_end(&table.trim_fmt()));
Ok(())
}