mirror of
https://github.com/nushell/nushell.git
synced 2025-08-12 06:19:18 +02:00
Add an option to move header on borders (#9796)
A patch to play with. Need to make a few tests after all. The question is what shall be done with `table.mode = none`, as it has no borders. ```nu $env.config.table.move_header = true ```  cc: @fdncred --------- Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
This commit is contained in:
@ -42,3 +42,8 @@ pub fn string_truncate(text: &str, width: usize) -> String {
|
||||
|
||||
Truncate::truncate_text(line, width).into_owned()
|
||||
}
|
||||
|
||||
pub fn clean_charset(text: &str) -> String {
|
||||
// todo: optimize, I bet it can be done in 1 path
|
||||
text.replace('\t', " ").replace('\r', "")
|
||||
}
|
||||
|
Reference in New Issue
Block a user