100 lines
4.2 KiB
HTML
100 lines
4.2 KiB
HTML
<head>
|
|
<title>fmt(1) - Plan 9 from User Space</title>
|
|
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
|
|
</head>
|
|
<body bgcolor=#ffffff>
|
|
<table border=0 cellpadding=0 cellspacing=0 width=100%>
|
|
<tr height=10><td>
|
|
<tr><td width=20><td>
|
|
<tr><td width=20><td><b>FMT(1)</b><td align=right><b>FMT(1)</b>
|
|
<tr><td width=20><td colspan=2>
|
|
<br>
|
|
<p><font size=+1><b>NAME </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
fmt, htmlfmt – simple text formatters<br>
|
|
|
|
</table>
|
|
<p><font size=+1><b>SYNOPSIS </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
<tt><font size=+1>fmt</font></tt> [ <i>option ...</i> ] [ <i>file ...</i> ]
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
|
|
|
|
<tt><font size=+1>htmlfmt</font></tt> [ <tt><font size=+1>−a</font></tt> ] [ <tt><font size=+1>−c</font></tt> <i>charset</i> ] [ <tt><font size=+1>−u</font></tt> <i>url</i> ] [ <i>file ...</i> ]<br>
|
|
|
|
</table>
|
|
<p><font size=+1><b>DESCRIPTION </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
<i>Fmt</i> copies the given <i>files</i> (standard input by default) to its
|
|
standard output, filling and indenting lines. The options are<br>
|
|
<tt><font size=+1>−l</font></tt> <i>n</i> Output line length is <i>n</i>, including indent (default 70).<br>
|
|
<tt><font size=+1>−w</font></tt> <i>n</i> A synonym for <tt><font size=+1>−l</font></tt>.<br>
|
|
<tt><font size=+1>−i</font></tt> <i>n</i> Indent <i>n</i> spaces (default 0).<br>
|
|
<tt><font size=+1>−j</font></tt> Do not join short lines: only fold long lines.
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
|
|
|
|
Empty lines and initial white space in input lines are preserved.
|
|
Empty lines are inserted between input files.
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
|
|
|
|
<i>Fmt</i> is idempotent: it leaves already formatted text unchanged.
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
|
|
|
|
<i>Htmlfmt</i> performs a similar service, but accepts as input text
|
|
formatted with HTML tags. It accepts <i>fmt</i>’s <tt><font size=+1>−l</font></tt> and <tt><font size=+1>−w</font></tt> flags and
|
|
also:<br>
|
|
<tt><font size=+1>−a</font></tt> Normally <i>htmlfmt</i> suppresses the contents of form fields and
|
|
anchors (URLs and image files); this flag causes it to print them,
|
|
in square brackets.<br>
|
|
<tt><font size=+1>−c</font></tt> <i>charset<br>
|
|
</i>
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
change the default character set from iso-8859-1 to <i>charset</i>. This
|
|
is the character set assumed if there isn’t one specified by the
|
|
html itself in a <meta> directive.<br>
|
|
|
|
</table>
|
|
<tt><font size=+1>−u</font></tt> <i>url</i>Use <i>url</i> as the base URL for the document when displaying
|
|
anchors; sets <tt><font size=+1>−a</font></tt><i>.<br>
|
|
</i>
|
|
</table>
|
|
<p><font size=+1><b>SOURCE </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
<tt><font size=+1>/usr/local/plan9/src/cmd/fmt.c
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=5><td></table>
|
|
</font></tt>
|
|
<tt><font size=+1>/usr/local/plan9/src/cmd/htmlfmt<br>
|
|
</font></tt>
|
|
</table>
|
|
<p><font size=+1><b>BUGS </b></font><br>
|
|
|
|
<table border=0 cellpadding=0 cellspacing=0><tr height=2><td><tr><td width=20><td>
|
|
|
|
<i>Htmlfmt</i> makes no attempt to render the two-dimensional geometry
|
|
of tables; it just treats the table entries as plain, to-be-formatted
|
|
text.<br>
|
|
|
|
</table>
|
|
|
|
<td width=20>
|
|
<tr height=20><td>
|
|
</table>
|
|
<!-- TRAILER -->
|
|
<table border=0 cellpadding=0 cellspacing=0 width=100%>
|
|
<tr height=15><td width=10><td><td width=10>
|
|
<tr><td><td>
|
|
<center>
|
|
<a href="../../"><img src="../../dist/spaceglenda100.png" alt="Space Glenda" border=1></a>
|
|
</center>
|
|
</table>
|
|
<!-- TRAILER -->
|
|
</body></html>
|