normalize.1
来自「HTML-XML-utils由一套小型C程序(过滤器)组成」· 1 代码 · 共 73 行
1
73 行
.TH man 1 "2 Dec 1998".SH NAMEnormalize \- pretty-print an HTML file.SH SYNOPSIS.B normalize.RB "[\| " \-x " \|]".RB "[\| " \-e " \|]".RB "[\| " \-d " \|]".RB "[\| " \-i.IR indent " \|]".RB "[\| " \-l.IR line\-length " \|]".RB "[\| " file " \|]".SH DESCRIPTION.LPThe.B normalizecommand pretty-prints an HTML file, and also tries to fix smallerrors. The output is the same HTML, but with a maximum line lengthand with optional indentation to indicate the nesting level of eachline..SH OPTIONSThe following options are supported:.TP 10.B \-xUse XML conventions: empty elements are written with a slash at theend: <IMG\ />. Implies \-e..TP.B \-eAlways insert endtags, even if HTML does not require them. (Forexample, </p> and </li>.).TP.B \-dOmit the DOCTYPE from the output..TP.BI \-i " indent"Set the number of spaces to indent each nesting level. Default is 2.Not all elements cause an indent. In general, elements that can occurin a block environment are started on a new line and cause an indent,but inline elements, such as EM and SPAN do not cause an indent..TP.BI \-l " line\-length"Sets the maximum length of lines..B normalizewill wrap lines so that all lines are as long as possible, but nolonger than this length. Default is 72. Words that are longer than theline length will not be broken, and will extend past this length. A\"word\" is a sequence of characters delimited by white space.) Thecontent of the STYLE, SCRIPT and PRE elements will not beline-wrapped..SH OPERANDSThe following operand is supported:.TP 10.I fileThe name of an HTML file. If absent, standard input is read instead..SH "EXIT STATUS"The following exit values are returned:.TP 10.B 0Successful completion..TP.B >0An error occurred in the parsing of the HTML file..B normalizewill try to correct the error and produce output anyway..SH "SEE ALSO".BR xml2asc (1),.BR UTF-8(RFC 2279).SH BUGS.LPNone known. But the error recovery for incorrect HTML is primitive.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?