From 0f79b3cf2d9a82eedce6af98c8f540c115b84e58 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 11 Jan 2023 14:44:59 +0100 Subject: [PATCH 1/2] sum: fix output of about string --- src/uu/sum/src/sum.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/sum/src/sum.rs b/src/uu/sum/src/sum.rs index 11fef32c7..8f20054e4 100644 --- a/src/uu/sum/src/sum.rs +++ b/src/uu/sum/src/sum.rs @@ -17,8 +17,8 @@ use uucore::{format_usage, show}; static NAME: &str = "sum"; static USAGE: &str = "{} [OPTION]... [FILE]..."; -static ABOUT: &str = r#"Checksum and count the blocks in a file. - With no FILE, or when FILE is -, read standard input."#; +static ABOUT: &str = "Checksum and count the blocks in a file.\n\n\ + With no FILE, or when FILE is -, read standard input."; // This can be replaced with usize::div_ceil once it is stabilized. // This implementation approach is optimized for when `b` is a constant, From 5ad3cbe9654cc460f3ffbaaad891299ab3b4de13 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 11 Jan 2023 15:55:37 +0100 Subject: [PATCH 2/2] unexpand: fix output of about string --- src/uu/unexpand/src/unexpand.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/unexpand/src/unexpand.rs b/src/uu/unexpand/src/unexpand.rs index 22e4aa08e..d9dcc92e0 100644 --- a/src/uu/unexpand/src/unexpand.rs +++ b/src/uu/unexpand/src/unexpand.rs @@ -23,8 +23,8 @@ use uucore::{crash, crash_if_err, format_usage}; static NAME: &str = "unexpand"; static USAGE: &str = "{} [OPTION]... [FILE]..."; -static ABOUT: &str = r#"Convert blanks in each FILE to tabs, writing to standard output. - With no FILE, or when FILE is -, read standard input."#; +static ABOUT: &str = "Convert blanks in each FILE to tabs, writing to standard output.\n\n\ + With no FILE, or when FILE is -, read standard input."; const DEFAULT_TABSTOP: usize = 8;