From 9eaa8908d2da00aa7fb002a66c45f4432363248d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Riegel?= <96702577+LoicRiegel@users.noreply.github.com> Date: Mon, 3 Mar 2025 23:49:29 +0100 Subject: [PATCH] doc: clarify trailing line ending in 'to json -r' documentation (#15234) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Description Fixes issue #15215 # User-Facing Changes Change in help msg in "to json" command with -r flag # Tests + Formatting cargo fmt 🆗 # After Submitting Doc for that is generated from code I think, so 🆗 --- crates/nu-command/src/formats/to/json.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/formats/to/json.rs b/crates/nu-command/src/formats/to/json.rs index 0ba5427038..7eb749977f 100644 --- a/crates/nu-command/src/formats/to/json.rs +++ b/crates/nu-command/src/formats/to/json.rs @@ -12,7 +12,11 @@ impl Command for ToJson { fn signature(&self) -> Signature { Signature::build("to json") .input_output_types(vec![(Type::Any, Type::String)]) - .switch("raw", "remove all of the whitespace", Some('r')) + .switch( + "raw", + "remove all of the whitespace and trailing line ending", + Some('r'), + ) .named( "indent", SyntaxShape::Number,