90 lines · 1.5 KB · Text
RawDownload
.TH FMT 1.SH NAMEfmt, htmlfmt \- simple text formatters.SH SYNOPSIS.B fmt[.I option ...][.I file ...].PP.B htmlfmt[.B -a] [.B -c.I charset] [.B -u.I url] [.I file ...].SH DESCRIPTION.I Fmtcopies the given.I files(standard input by default)to its standard output, filling and indenting lines.The options are.TP.BI -l " nOutput line length is.IR n ,including indent (default 70)..TP.BI -w " nA synonym for.BR -l ..TP.BI -i " nIndent.I nspaces (default 0)..TP.BI -jDo not join short lines: only fold long lines..PPEmpty lines and initial white space in input lines are preserved.Empty lines are inserted between input files..PP.I Fmtis idempotent: it leaves already formatted text unchanged..PP.I Htmlfmtperforms a similar service, but accepts as input text formatted withHTML tags.It accepts.IR fmt 's.B -land.B -wflags and also:.TP.BI -aNormally.I htmlfmtsuppresses the contents of form fields and anchors (URLs and image files); this flagcauses it to print them, in square brackets..TP.BI -c " charsetchange the default character set from iso-8859-1 to.IR charset .This is the character set assumed if there isn't onespecified by the html itself in a <meta> directive..TP.BI -u " urlUse.I urlas the base URL for the document when displaying anchors; sets.BI -a ..SH SOURCE.B /sys/src/cmd/fmt.c.PP.B /sys/src/cmd/htmlfmt.SH BUGS.I Htmlfmtmakes no attempt to render the two-dimensional geometry of tables;it just treats the table entries as plain, to-be-formatted text.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t