version 1.18, 2006/11/29 20:09:27 |
version 1.19, 2006/11/29 20:18:50 |
|
|
to 10 more than the |
to 10 more than the |
.Ar goal |
.Ar goal |
length. |
length. |
|
.Pp |
Alternatively, a single |
Alternatively, a single |
.Ar width |
.Ar width |
parameter can be specified either by prepending a hyphen to it or by using |
parameter can be specified either by prepending a hyphen to it or by using |
.Fl w . |
.Fl w . |
For example, |
For example, |
.Dq Li fmt -w 72 , |
.Dq fmt -w 72 , |
.Dq Li fmt -72 , |
.Dq fmt -72 , |
and |
and |
.Dq Li fmt 72 72 |
.Dq fmt 72 72 |
all produce identical output. |
all produce identical output. |
The spacing at the beginning of the input lines is preserved in the output, |
The spacing at the beginning of the input lines is preserved in the output, |
as are blank lines and interword spacing. |
as are blank lines and interword spacing. |
|
|
In this case, most of the other |
In this case, most of the other |
options are ignored; no splitting or joining of lines is done. |
options are ignored; no splitting or joining of lines is done. |
.It Fl d Ar chars |
.It Fl d Ar chars |
Treat the |
Treat |
.Ar chars |
.Ar chars |
(and no others) as sentence-ending characters. |
(and no others) as sentence-ending characters. |
By default the |
By default the |
sentence-ending characters are full stop |
sentence-ending characters are full stop |
.Pq Ql \&. , |
.Pq Ql \&. , |
question mark |
question mark |
.Pq Ql \&? |
.Pq Ql \&? , |
and exclamation mark |
and exclamation mark |
.Pq Ql \&! . |
.Pq Ql \&! . |
Remember that some characters may need to be |
Remember that some characters may need to be |
escaped to protect them from your shell. |
escaped to protect them from the shell. |
.It Fl l Ar number |
.It Fl l Ar number |
Replace multiple spaces with tabs at the start of each output |
Replace multiple spaces with tabs at the start of each output |
line, if possible. |
line, if possible. |
|
|
results in a new paragraph being begun. |
results in a new paragraph being begun. |
.It Fl s |
.It Fl s |
Collapse whitespace inside lines, so that multiple whitespace |
Collapse whitespace inside lines, so that multiple whitespace |
characters are turned into a single space. |
characters are turned into a single space |
(Or, at the end of a |
(or, at the end of a |
sentence, a double space.) |
sentence, a double space). |
.It Fl t Ar number |
.It Fl t Ar number |
Assume that the input files' tabs assume |
Assume that the input files' tabs assume |
.Ar number |
.Ar number |
|
|
.An Gareth McCaughan |
.An Gareth McCaughan |
(wrote this version) |
(wrote this version) |
.Sh BUGS |
.Sh BUGS |
The program was designed to be simple and fast \- for more complex |
The program was designed to be simple and fast \(en for more complex |
operations, the standard text processors are likely to be more appropriate. |
operations, the standard text processors are likely to be more appropriate. |
.Pp |
.Pp |
When the first line of an indented paragraph is very long (more than |
When the first line of an indented paragraph is very long (more than |