nushell/crates/nu-command/src/strings
Wenbo Chen 9ab706db62
Fix output format borken in char --list (#13417)
# Description

Resolve #13395 

When we use the `char --list` command, it also outputs the characters
*bel* and *backspace*, which breaks the table's alignment.
![Screenshot from 2024-07-21
16-10-03](https://github.com/user-attachments/assets/54561cbc-f1a1-4ccd-9561-65dccc939280)
I also found that the behaviour at the beginning of the table is not
correct because of some line change characters, as I mentioned in the
issue discussion.

So, the solution is to create a list containing the characters that do
not need to be output. When the name is in the list, we output the
character as an empty string. Here is the behaviour after fixing.
![Screenshot from 2024-07-21
16-16-08](https://github.com/user-attachments/assets/dd3345a3-6a72-4c90-b331-bc95dc6db66a)
![Screenshot from 2024-07-21
16-16-39](https://github.com/user-attachments/assets/57dc5073-7f8d-40c4-9830-36eba23075e6)
2024-07-21 06:30:14 -05:00
..
encode_decode Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
format Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
split Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
str_ Add and use new Signals struct (#13314) 2024-07-07 22:29:01 +00:00
char_.rs Fix output format borken in char --list (#13417) 2024-07-21 06:30:14 -05:00
detect_columns.rs Update config directly at assignment (#13332) 2024-07-11 06:09:33 -07:00
guess_width.rs Skip decoration lines for detect columns --guess (#13274) 2024-06-30 07:38:41 -05:00
mod.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
parse.rs tweak parse usage and examples to be more clear (#13363) 2024-07-12 09:48:27 -05:00