diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-11-29 00:33:07 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-11-29 00:33:07 +0000 |
commit | dcc75ff608c9d0f0a00b17f07cfe82471163de0a (patch) | |
tree | 649834d1caaa53782c0e71617c395369df43c45e /usr.bin/fmt/fmt.1 | |
parent | f2235c86c461c8985327f9605b5621b26534470d (diff) |
Restore historic behavior:
o don't fmt lines that start with '.' to avoid hosing *roff
o add -n flag to disable above behavior (undocumented feature in old fmt)
Patch from Ruslan Ermilov (FreeBSD)
Diffstat (limited to 'usr.bin/fmt/fmt.1')
-rw-r--r-- | usr.bin/fmt/fmt.1 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/usr.bin/fmt/fmt.1 b/usr.bin/fmt/fmt.1 index 67a934acbac..d5bddd7ab42 100644 --- a/usr.bin/fmt/fmt.1 +++ b/usr.bin/fmt/fmt.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fmt.1,v 1.14 2001/11/28 22:09:28 millert Exp $ +.\" $OpenBSD: fmt.1,v 1.15 2001/11/29 00:33:06 millert Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -41,7 +41,7 @@ .Nd simple text formatter .Sh SYNOPSIS .Nm fmt -.Op Fl cmps +.Op Fl cmnps .Op Fl d Ar chars .Op Fl l Ar num .Op Fl t Ar num @@ -93,6 +93,16 @@ In this case, most of the other options are ignored; no splitting or joining of lines is done. .It Fl m Try to format mail header lines contained in the input sensibly. +.It Fl n +Format lines beginning with a +.Ql \&. +(dot) character. +Normally, +.Nm +does not fill these lines, for compatibility with +.Xr troff 1 +and +.Xr nroff 1 . .It Fl p Allow indented paragraphs. Without the @@ -145,7 +155,8 @@ will reformat a paragraph, evening the lines. .Sh SEE ALSO .Xr mail 1 , -.Xr nroff 1 +.Xr nroff 1 , +.Xr troff 1 .Sh HISTORY The .Nm |