1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-22 11:37:10 +01:00
nushell/crates/nu-table
Maxim Zhiburt 73d3708006
Patch restore lead trail space bg color ()
```nu
 $env.config.color_config.leading_trailing_space_bg = { bg: 'white' }; [[a b, 'c   ']; ['  1  ' '    2' '3    '] ['  4  ' "hello   \n  world  " ['  1  ' 2 [1 '  2  ' 3]]]] | table --expand
```


![image](https://github.com/nushell/nushell/assets/20165848/01a35042-0e36-4c51-99a9-3011fabb551b)

ref: 
close: 

note: test are not actually make scenes cause `nu!` strips colors.
(Ideally it would need a flag to not do so)
note: It does does does ... slower down quite a bit rendering... (

PS: Maybe it's better being a flag to `table` rather then a
configuration option?
PS: I am not sure why the logic was removed in a first place
2023-09-13 07:47:53 -05:00
..
examples Add an option to set header on border (style) () 2023-08-04 13:50:47 -05:00
src Patch restore lead trail space bg color () 2023-09-13 07:47:53 -05:00
tests Add an option to set header on border (style) () 2023-08-04 13:50:47 -05:00
.gitignore Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
Cargo.toml Patch restore lead trail space bg color () 2023-09-13 07:47:53 -05:00
LICENSE Fix rest of license year ranges () 2023-04-04 09:03:29 +12:00