1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

fmt: fix indentation for help

This commit is contained in:
Michael Debertol 2021-06-18 11:57:19 +02:00
parent a9e79c72c7
commit a8d62b9b23

View file

@ -219,10 +219,10 @@ pub fn uu_app() -> App<'static, 'static> {
.short("c") .short("c")
.long(OPT_CROWN_MARGIN) .long(OPT_CROWN_MARGIN)
.help( .help(
"First and second line of paragraph "First and second line of paragraph \
may have different indentations, in which may have different indentations, in which \
case the first line's indentation is preserved, case the first line's indentation is preserved, \
and each subsequent line's indentation matches the second line.", and each subsequent line's indentation matches the second line.",
), ),
) )
.arg( .arg(
@ -230,7 +230,7 @@ pub fn uu_app() -> App<'static, 'static> {
.short("t") .short("t")
.long("tagged-paragraph") .long("tagged-paragraph")
.help( .help(
"Like -c, except that the first and second line of a paragraph *must* "Like -c, except that the first and second line of a paragraph *must* \
have different indentation or they are treated as separate paragraphs.", have different indentation or they are treated as separate paragraphs.",
), ),
) )
@ -239,7 +239,7 @@ pub fn uu_app() -> App<'static, 'static> {
.short("m") .short("m")
.long("preserve-headers") .long("preserve-headers")
.help( .help(
"Attempt to detect and preserve mail headers in the input. "Attempt to detect and preserve mail headers in the input. \
Be careful when combining this flag with -p.", Be careful when combining this flag with -p.",
), ),
) )
@ -254,10 +254,10 @@ pub fn uu_app() -> App<'static, 'static> {
.short("u") .short("u")
.long("uniform-spacing") .long("uniform-spacing")
.help( .help(
"Insert exactly one "Insert exactly one \
space between words, and two between sentences. space between words, and two between sentences. \
Sentence breaks in the input are detected as [?!.] Sentence breaks in the input are detected as [?!.] \
followed by two spaces or a newline; other punctuation followed by two spaces or a newline; other punctuation \
is not interpreted as a sentence break.", is not interpreted as a sentence break.",
), ),
) )
@ -266,9 +266,9 @@ pub fn uu_app() -> App<'static, 'static> {
.short("p") .short("p")
.long("prefix") .long("prefix")
.help( .help(
"Reformat only lines "Reformat only lines \
beginning with PREFIX, reattaching PREFIX to reformatted lines. beginning with PREFIX, reattaching PREFIX to reformatted lines. \
Unless -x is specified, leading whitespace will be ignored Unless -x is specified, leading whitespace will be ignored \
when matching PREFIX.", when matching PREFIX.",
) )
.value_name("PREFIX"), .value_name("PREFIX"),
@ -278,8 +278,8 @@ pub fn uu_app() -> App<'static, 'static> {
.short("P") .short("P")
.long("skip-prefix") .long("skip-prefix")
.help( .help(
"Do not reformat lines "Do not reformat lines \
beginning with PSKIP. Unless -X is specified, leading whitespace beginning with PSKIP. Unless -X is specified, leading whitespace \
will be ignored when matching PSKIP", will be ignored when matching PSKIP",
) )
.value_name("PSKIP"), .value_name("PSKIP"),
@ -289,7 +289,7 @@ pub fn uu_app() -> App<'static, 'static> {
.short("x") .short("x")
.long("exact-prefix") .long("exact-prefix")
.help( .help(
"PREFIX must match at the "PREFIX must match at the \
beginning of the line with no preceding whitespace.", beginning of the line with no preceding whitespace.",
), ),
) )
@ -298,7 +298,7 @@ pub fn uu_app() -> App<'static, 'static> {
.short("X") .short("X")
.long("exact-skip-prefix") .long("exact-skip-prefix")
.help( .help(
"PSKIP must match at the "PSKIP must match at the \
beginning of the line with no preceding whitespace.", beginning of the line with no preceding whitespace.",
), ),
) )
@ -317,7 +317,7 @@ pub fn uu_app() -> App<'static, 'static> {
.value_name("GOAL"), .value_name("GOAL"),
) )
.arg(Arg::with_name(OPT_QUICK).short("q").long("quick").help( .arg(Arg::with_name(OPT_QUICK).short("q").long("quick").help(
"Break lines more quickly at the "Break lines more quickly at the \
expense of a potentially more ragged appearance.", expense of a potentially more ragged appearance.",
)) ))
.arg( .arg(
@ -325,8 +325,8 @@ pub fn uu_app() -> App<'static, 'static> {
.short("T") .short("T")
.long("tab-width") .long("tab-width")
.help( .help(
"Treat tabs as TABWIDTH spaces for "Treat tabs as TABWIDTH spaces for \
determining line length, default 8. Note that this is used only for determining line length, default 8. Note that this is used only for \
calculating line lengths; tabs are preserved in the output.", calculating line lengths; tabs are preserved in the output.",
) )
.value_name("TABWIDTH"), .value_name("TABWIDTH"),