fix: Trim trailing whitespace from printed tables
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -125,7 +125,7 @@ fn show_item(
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("{}", table);
|
println!("{}", table.trim_end());
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ pub fn mode_list(
|
|||||||
table.add_row(table_row);
|
table.add_row(table_row);
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("{}", table);
|
println!("{}", table.trim_end());
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -209,17 +209,17 @@ pub fn mode_status(
|
|||||||
match output_format {
|
match output_format {
|
||||||
OutputFormat::Table => {
|
OutputFormat::Table => {
|
||||||
println!("CONFIG:");
|
println!("CONFIG:");
|
||||||
println!("{}", build_config_table(settings));
|
println!("{}", build_config_table(settings).trim_end());
|
||||||
println!();
|
println!();
|
||||||
|
|
||||||
println!("PATHS:");
|
println!("PATHS:");
|
||||||
println!("{}", build_path_table(&status_info.paths));
|
println!("{}", build_path_table(&status_info.paths).trim_end());
|
||||||
println!();
|
println!();
|
||||||
|
|
||||||
// Always try to print META PLUGINS CONFIGURED section using status_info
|
// Always try to print META PLUGINS CONFIGURED section using status_info
|
||||||
if let Some(meta_plugins_table) = build_meta_plugins_configured_table(&status_info) {
|
if let Some(meta_plugins_table) = build_meta_plugins_configured_table(&status_info) {
|
||||||
println!("META PLUGINS CONFIGURED:");
|
println!("META PLUGINS CONFIGURED:");
|
||||||
println!("{}", meta_plugins_table);
|
println!("{}", meta_plugins_table.trim_end());
|
||||||
println!();
|
println!();
|
||||||
} else {
|
} else {
|
||||||
println!("META PLUGINS CONFIGURED:");
|
println!("META PLUGINS CONFIGURED:");
|
||||||
|
|||||||
@@ -261,15 +261,15 @@ pub fn mode_status_plugins(
|
|||||||
OutputFormat::Table => {
|
OutputFormat::Table => {
|
||||||
println!("META PLUGINS:");
|
println!("META PLUGINS:");
|
||||||
println!("META PLUGINS:");
|
println!("META PLUGINS:");
|
||||||
println!("{}", build_meta_plugin_table(&status_info.meta_plugins));
|
println!("{}", build_meta_plugin_table(&status_info.meta_plugins).trim_end());
|
||||||
println!();
|
println!();
|
||||||
|
|
||||||
println!("COMPRESSION PLUGINS:");
|
println!("COMPRESSION PLUGINS:");
|
||||||
println!("{}", build_compression_table(&status_info.compression));
|
println!("{}", build_compression_table(&status_info.compression).trim_end());
|
||||||
println!();
|
println!();
|
||||||
|
|
||||||
println!("FILTER PLUGINS:");
|
println!("FILTER PLUGINS:");
|
||||||
println!("{}", build_filter_plugin_table(&status_info.filter_plugins));
|
println!("{}", build_filter_plugin_table(&status_info.filter_plugins).trim_end());
|
||||||
println!();
|
println!();
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user