From beedf6fa6a82fb6fe185f6a064c4323689fdb89a Mon Sep 17 00:00:00 2001 From: hackeryarn Date: Sun, 27 Apr 2025 09:31:37 -0500 Subject: [PATCH] remove raw flag from ndnuon --- crates/nu-std/std/assert/mod.nu | 10 +++++----- crates/nu-std/std/formats/mod.nu | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/nu-std/std/assert/mod.nu b/crates/nu-std/std/assert/mod.nu index 297e66ba52..4bfc410e46 100644 --- a/crates/nu-std/std/assert/mod.nu +++ b/crates/nu-std/std/assert/mod.nu @@ -96,8 +96,8 @@ export def equal [left: any, right: any, message?: string] { } text: ( "These are not equal.\n" - + $" Left : '($left | to nuon --raw)'\n" - + $" Right : '($right | to nuon --raw)'" + + $" Left : '($left | to nuon)'\n" + + $" Right : '($right | to nuon)'" ) } } @@ -114,7 +114,7 @@ export def "not equal" [left: any, right: any, message?: string] { start: (metadata $left).span.start end: (metadata $right).span.end } - text: $"These are both '($left | to nuon --raw)'." + text: $"These are both '($left | to nuon)'." } } @@ -210,7 +210,7 @@ export def length [left: list, right: int, message?: string] { } text: ( "This does not have the correct length:\n" - + $" value : ($left | to nuon --raw)\n" + + $" value : ($left | to nuon)\n" + $" length : ($left | core length)\n" + $" expected : ($right)" ) @@ -231,7 +231,7 @@ export def "str contains" [left: string, right: string, message?: string] { } text: ( $"This does not contain '($right)'.\n" - + $" value: ($left | to nuon --raw)" + + $" value: ($left | to nuon)" ) } } diff --git a/crates/nu-std/std/formats/mod.nu b/crates/nu-std/std/formats/mod.nu index 429b867741..43e2a313ca 100644 --- a/crates/nu-std/std/formats/mod.nu +++ b/crates/nu-std/std/formats/mod.nu @@ -36,5 +36,5 @@ export def "from ndnuon" []: [string -> any] { # Convert structured data to newline-delimited NUON (NDNUON) export def "to ndnuon" []: [any -> string] { - each { to nuon --raw | str replace --all "\n" '\n' } | to text + each { to nuon | str replace --all "\n" '\n' } | to text }