mirror of
https://github.com/nushell/nushell.git
synced 2025-05-29 22:29:06 +02:00
print the value as a formatted string
This commit is contained in:
parent
471ce95b5b
commit
2927d70fcc
@ -213,7 +213,7 @@ fn get_documentation(
|
|||||||
|
|
||||||
match &example.result {
|
match &example.result {
|
||||||
Some(result) => {
|
Some(result) => {
|
||||||
let _ = write!(long_desc, "{:#?}\n", result);
|
let _ = write!(long_desc, " {}\n", result.into_string(" ", engine_state.get_config()));
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
let _ = write!(long_desc, " {WD}...{RESET}\n");
|
let _ = write!(long_desc, " {WD}...{RESET}\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user