1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

ptx: implement -t to change default width to 100

Align the -t implementation with the Heirloom project.

* src/ptx.c (usage): Describe -t, and also mention
the default width is 72 when not used.
* doc/coreutils.texi (ptx invocation): Likewise.
(main): Override the default width if -t is specified.
* tests/ptx/ptx.pl: Add test cases.
* NEWS: Mention the change in behavior.
This commit is contained in:
Pádraig Brady
2026-01-05 21:56:38 +00:00
parent e1994cd9ac
commit 7531d3a205
4 changed files with 22 additions and 3 deletions

View File

@@ -5726,6 +5726,12 @@ Output format is further controlled by the following options.
Select the size of the minimum white space gap between the fields on the
output line.
@optItem{ptx,-t,}
@optItemx{ptx,--typeset-mode,}
Prepare the output for a phototypesetter.
I.e., change the default output width from 72 to 100 columns.
This is equivalent to @option{--width=100}.
@optItem{ptx,-w,@w{ }@var{number}}
@optItemx{ptx,--width,=@var{number}}
Select the maximum output width of each final line. If references are