diff --git a/crates/nu-std/std/help/mod.nu b/crates/nu-std/std/help/mod.nu index 04713702ac..2f26ffc75a 100644 --- a/crates/nu-std/std/help/mod.nu +++ b/crates/nu-std/std/help/mod.nu @@ -708,8 +708,9 @@ def build-command-page [command: record] { (if not ($example.result | is-empty) { $example.result | table -e - | to text - | if ($example.result | describe) == "binary" { str join } else { lines } + | str trim --right + | lines + | skip until { is-not-empty } | each {|line| $" ($line)" }