]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: pr: fix --help output output
authorPádraig Brady <P@draigBrady.com>
Thu, 22 Jan 2026 12:55:01 +0000 (12:55 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 22 Jan 2026 13:00:38 +0000 (13:00 +0000)
* src/pr.c (usage): Use consistent alignment with -J,
and highlight --pages using oputs().

src/pr.c

index 5694411674c51c18692d013edf63536093cc28b1..cb2d45d54afa1652f64ef1679a5ceb6d688e4d60 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
@@ -2774,10 +2774,10 @@ Paginate or columnate FILE(s) for printing.\n\
       emit_stdin_note ();
       emit_mandatory_arg_note ();
 
-      fputs (_("\
+      oputs (_("\n\
   +FIRST_PAGE[:LAST_PAGE], --pages=FIRST_PAGE[:LAST_PAGE]\n\
          begin [stop] printing with page FIRST_[LAST_]PAGE\n\
-"), stdout);
+"));
       oputs (_("\
   -COLS, --columns=COLS\n\
          output COLS columns and print columns down, unless -a is used.\n\
@@ -2819,8 +2819,9 @@ Paginate or columnate FILE(s) for printing.\n\
          replace spaces with CHARs (TABs) to tab WIDTH (8)\n\
 "));
       oputs (_("\
-  -J, --join-lines  merge full lines, turns off -W line truncation, no column\n\
-         alignment, --sep-string[=STRING] sets separators\n\
+  -J, --join-lines\n\
+         merge full lines, turns off -W line truncation,\n\
+         no column alignment, --sep-string[=STRING] sets separators\n\
 "));
       oputs (_("\
   -l, --length=PAGE_LENGTH\n\