More documentation beautification.
This commit is contained in:
parent
565d2ec232
commit
2613f02dc5
171
src/localize.c
171
src/localize.c
|
@ -426,7 +426,7 @@ static const TidyOptionDoc option_docs[] =
|
|||
"presentational tags (currently <code><i></code>, "
|
||||
"<code><b></code>, <code><center></code> when enclosed within "
|
||||
"appropriate inline tags, and <code><font></code>). If set to "
|
||||
"<code>YES</code> then legacy tags will be replaced with CSS "
|
||||
"<code>yes</code> then legacy tags will be replaced with CSS "
|
||||
"<code><style></code> tags and structural markup as appropriate. "
|
||||
,
|
||||
},
|
||||
|
@ -453,7 +453,7 @@ static const TidyOptionDoc option_docs[] =
|
|||
"<br/>"
|
||||
"Alternatively, you can supply a string for the formal public identifier "
|
||||
"(FPI)."
|
||||
"<br />"
|
||||
"<br/>"
|
||||
"For example: "
|
||||
"<br/>"
|
||||
"<code>doctype: \"-//ACME//DTD HTML 3.14159//EN\"</code>"
|
||||
|
@ -491,31 +491,36 @@ static const TidyOptionDoc option_docs[] =
|
|||
},
|
||||
{TidyDropPropAttrs,
|
||||
"This option specifies if Tidy should strip out proprietary attributes, "
|
||||
"such as MS data binding attributes. "
|
||||
"such as Microsoft data binding attributes. "
|
||||
},
|
||||
{TidyEncloseBlockText,
|
||||
"This option specifies if Tidy should insert a <P> element to "
|
||||
"enclose any text it finds in any element that allows mixed content for "
|
||||
"HTML transitional but not HTML strict. "
|
||||
"This option specifies if Tidy should insert a <code><P></code> "
|
||||
"element to enclose any text it finds in any element that allows mixed "
|
||||
"content for HTML transitional but not HTML strict. "
|
||||
},
|
||||
{TidyEncloseBodyText,
|
||||
"This option specifies if Tidy should enclose any text it finds in the "
|
||||
"body element within a <P> element. This is useful when you want to "
|
||||
"take existing HTML and use it with a style sheet. "
|
||||
"body element within a <code><P></code> element."
|
||||
"<br/>"
|
||||
"This is useful when you want to take existing HTML and use it with a "
|
||||
"style sheet. "
|
||||
},
|
||||
{TidyEscapeCdata,
|
||||
"This option specifies if Tidy should convert <![CDATA[]]> "
|
||||
"sections to normal text. "
|
||||
"This option specifies if Tidy should convert "
|
||||
"<code><![CDATA[]]></code> sections to normal text. "
|
||||
},
|
||||
{TidyFixComments,
|
||||
"This option specifies if Tidy should replace unexpected hyphens with "
|
||||
"\"=\" characters when it comes across adjacent hyphens. The default is "
|
||||
"yes. This option is provided for users of Cold Fusion which uses the "
|
||||
"comment syntax: <!--- ---> "
|
||||
"<code>=</code> characters when it comes across adjacent hyphens. "
|
||||
"<br/>"
|
||||
"The default is <code>yes</code>. "
|
||||
"<br/>"
|
||||
"This option is provided for users of Cold Fusion which uses the "
|
||||
"comment syntax: <code><!--- ---></code>. "
|
||||
},
|
||||
{TidyFixUri,
|
||||
"This option specifies if Tidy should check attribute values that carry "
|
||||
"URIs for illegal characters and if such are found, escape them as HTML 4 "
|
||||
"URIs for illegal characters and if such are found, escape them as HTML4 "
|
||||
"recommends. "
|
||||
},
|
||||
{TidyHideComments,
|
||||
|
@ -524,22 +529,34 @@ static const TidyOptionDoc option_docs[] =
|
|||
{TidyCoerceEndTags,
|
||||
"This option specifies if Tidy should coerce a start tag into an end tag "
|
||||
"in cases where it looks like an end tag was probably intended; "
|
||||
"for example, given <span>foo <b>bar<b> baz</span>, "
|
||||
"Tidy will output <span>foo <b>bar</b> baz</span>. "
|
||||
"for example, given "
|
||||
"<br/>"
|
||||
"<code><span>foo <b>bar<b> baz</span></code> "
|
||||
"<br/>"
|
||||
"Tidy will output "
|
||||
"<br/>"
|
||||
"<code><span>foo <b>bar</b> baz</span></code> "
|
||||
},
|
||||
{TidyOmitOptionalTags,
|
||||
"This option specifies if Tidy should omit optional start tags and end tags "
|
||||
"when generating output. Setting this option causes all tags for the "
|
||||
"html, head, and body elements to be omitted from output, as well as such "
|
||||
"end tags as </p>, </li>, </dt>, </dd>, "
|
||||
"</option>, </tr>, </td>, and </th>. "
|
||||
"when generating output. "
|
||||
"<br/>"
|
||||
"Setting this option causes all tags for the <code><html></code>, "
|
||||
"<code><head></code>, and <code><body></code> elements to be "
|
||||
"omitted from output, as well as such end tags as <code></p></code>, "
|
||||
"<code></li></code>, <code></dt></code>, "
|
||||
"<code></dd></code>, <code></option></code>, "
|
||||
"<code></tr></code>, <code></td></code>, and "
|
||||
"<code></th></code>. "
|
||||
"<br/>"
|
||||
"This option is ignored for XML output. "
|
||||
},
|
||||
{TidyHideEndTags,
|
||||
"This option is an alias for omit-optional-tags. "
|
||||
},
|
||||
{TidyIndentCdata,
|
||||
"This option specifies if Tidy should indent <![CDATA[]]> sections. "
|
||||
"This option specifies if Tidy should indent "
|
||||
"<code><![CDATA[]]></code> sections. "
|
||||
},
|
||||
{TidyXmlTags,
|
||||
"This option specifies if Tidy should use the XML parser rather than the "
|
||||
|
@ -547,47 +564,62 @@ static const TidyOptionDoc option_docs[] =
|
|||
},
|
||||
{TidyJoinClasses,
|
||||
"This option specifies if Tidy should combine class names to generate "
|
||||
"a single new class name, if multiple class assignments are detected on "
|
||||
"a single new class name if multiple class assignments are detected on "
|
||||
"an element. "
|
||||
, TidyJoinClassesLinks
|
||||
},
|
||||
{TidyJoinStyles,
|
||||
"This option specifies if Tidy should combine styles to generate a single "
|
||||
"new style, if multiple style values are detected on an element. "
|
||||
"new style if multiple style values are detected on an element. "
|
||||
, TidyJoinStylesLinks
|
||||
},
|
||||
{TidyLogicalEmphasis,
|
||||
"This option specifies if Tidy should replace any occurrence of <I> "
|
||||
"by <EM> and any occurrence of <B> by <STRONG>. In both "
|
||||
"cases, the attributes are preserved unchanged. This option can be set "
|
||||
"independently of the clean and drop-font-tags options. "
|
||||
"This option specifies if Tidy should replace any occurrence of "
|
||||
"<code><i></code> with <code><em></code> and any occurrence of "
|
||||
"<code><b></code> with <code><strong></code>. Any attributes "
|
||||
"are preserved unchanged. "
|
||||
"<br/>"
|
||||
"This option can be set independently of the <code>clean</code> option. "
|
||||
},
|
||||
{TidyLowerLiterals,
|
||||
"This option specifies if Tidy should convert the value of an attribute "
|
||||
"that takes a list of predefined values to lower case. This is required "
|
||||
"for XHTML documents. "
|
||||
"that takes a list of predefined values to lower case. "
|
||||
"<br/>"
|
||||
"This is required for XHTML documents. "
|
||||
},
|
||||
{TidyMergeEmphasis,
|
||||
"This option specifies if Tidy should merge nested <b> and <i> "
|
||||
"elements; for example, for the case "
|
||||
"<b class=\"rtop-2\">foo <b class=\"r2-2\">bar</b> baz</b>, "
|
||||
"Tidy will output <b class=\"rtop-2\">foo bar baz</b>. "
|
||||
"This option specifies if Tidy should merge nested <code><b></code> "
|
||||
"and <code><i></code> elements; for example, for the case "
|
||||
"<br/>"
|
||||
"<code><b class=\"rtop-2\">foo <b class=\"r2-2\">bar</b> baz</b></code>, "
|
||||
"<br/>"
|
||||
"Tidy will output <code><b class=\"rtop-2\">foo bar baz</b></code>. "
|
||||
},
|
||||
{TidyMergeDivs,
|
||||
"Can be used to modify behavior of -c (--clean yes) option. "
|
||||
"This option specifies if Tidy should merge nested <div> such as "
|
||||
"\"<div><div>...</div></div>\". If set to "
|
||||
"\"auto\", the attributes of the inner <div> are moved to the "
|
||||
"outer one. As well, nested <div> with ID attributes are not "
|
||||
"merged. If set to \"yes\", the attributes of the inner <div> "
|
||||
"are discarded with the exception of \"class\" and \"style\". "
|
||||
"This option can be used to modify the behavior of <code>clean</code> when "
|
||||
"set to <code>yes</code>."
|
||||
"<br/>"
|
||||
"This option specifies if Tidy should merge nested <code><div></code> "
|
||||
"such as <code><div><div>...</div></div></code>. "
|
||||
"<br/>"
|
||||
"If set to <code>auto</code> the attributes of the inner "
|
||||
"<code><div></code> are moved to the outer one. Nested "
|
||||
"<code><div></code> with <code>id</code> attributes are <em>not</em> "
|
||||
"merged. "
|
||||
"<br/>"
|
||||
"If set to <code>yes</code> the attributes of the inner "
|
||||
"<code><div></code> are discarded with the exception of "
|
||||
"<code>class</code> and <code>style</code>. "
|
||||
,TidyMergeDivsLinks
|
||||
},
|
||||
{TidyMergeSpans,
|
||||
"Can be used to modify behavior of -c (--clean yes) option. "
|
||||
"This option specifies if Tidy should merge nested <span> such as "
|
||||
"\"<span><span>...</span></span>\". The algorithm "
|
||||
"is identical to the one used by --merge-divs. "
|
||||
"This option can be used to modify the behavior of <code>clean</code> when "
|
||||
"set to <code>yes</code>."
|
||||
"<br/>"
|
||||
"This option specifies if Tidy should merge nested <code><span></code> "
|
||||
"such as <code><span><span>...</span></span></code>. "
|
||||
"<br/>"
|
||||
"The algorithm is identical to the one used by <code>merge-divs</code>. "
|
||||
,TidyMergeSpansLinks
|
||||
},
|
||||
#if SUPPORT_ASIAN_ENCODINGS
|
||||
|
@ -597,35 +629,50 @@ static const TidyOptionDoc option_docs[] =
|
|||
#endif
|
||||
{TidyBlockTags,
|
||||
"This option specifies new block-level tags. This option takes a space or "
|
||||
"comma separated list of tag names. Unless you declare new tags, Tidy will "
|
||||
"refuse to generate a tidied file if the input includes previously unknown "
|
||||
"tags. Note you can't change the content model for elements such as "
|
||||
"<TABLE>, <UL>, <OL> and <DL>. This option is "
|
||||
"ignored in XML mode. "
|
||||
"comma separated list of tag names. "
|
||||
"<br/>"
|
||||
"Unless you declare new tags, Tidy will refuse to generate a tidied file if "
|
||||
"the input includes previously unknown tags. "
|
||||
"<br/>"
|
||||
"Note you can't change the content model for elements such as "
|
||||
"<code><table></code>, <code><ul></code>, "
|
||||
"<code><ol></code> and <code><dl></code>. "
|
||||
"<br/>"
|
||||
"This option is ignored in XML mode. "
|
||||
,TidyBlockTagsLinks
|
||||
},
|
||||
{TidyEmptyTags,
|
||||
"This option specifies new empty inline tags. This option takes a space "
|
||||
"or comma separated list of tag names. Unless you declare new tags, Tidy "
|
||||
"will refuse to generate a tidied file if the input includes previously "
|
||||
"unknown tags. Remember to also declare empty tags as either inline or "
|
||||
"blocklevel. This option is ignored in XML mode. "
|
||||
"or comma separated list of tag names. "
|
||||
"<br/>"
|
||||
"Unless you declare new tags, Tidy will refuse to generate a tidied file if "
|
||||
"the input includes previously unknown tags. "
|
||||
"<br/>"
|
||||
"Remember to also declare empty tags as either inline or blocklevel. "
|
||||
"<br/>"
|
||||
"This option is ignored in XML mode. "
|
||||
,TidyEmptyTagsLinks
|
||||
},
|
||||
{TidyInlineTags,
|
||||
"This option specifies new non-empty inline tags. This option takes a "
|
||||
"space or comma separated list of tag names. Unless you declare new tags, "
|
||||
"Tidy will refuse to generate a tidied file if the input includes "
|
||||
"previously unknown tags. This option is ignored in XML mode. "
|
||||
"space or comma separated list of tag names. "
|
||||
"<br/>"
|
||||
"Unless you declare new tags, Tidy will refuse to generate a tidied file if "
|
||||
"the input includes previously unknown tags. "
|
||||
"<br/>"
|
||||
"This option is ignored in XML mode. "
|
||||
,TidyInlineTagsLinks
|
||||
},
|
||||
{ TidyPreTags,
|
||||
"This option specifies "
|
||||
"new tags that are to be processed in exactly the same way as HTML's "
|
||||
"<PRE> element. This option takes a space or comma separated list "
|
||||
"of tag names. Unless you declare new tags, Tidy will refuse to generate "
|
||||
"a tidied file if the input includes previously unknown tags. Note you "
|
||||
"can not as yet add new CDATA elements (similar to <SCRIPT>). "
|
||||
"This option specifies new tags that are to be processed in exactly the "
|
||||
"same way as HTML's <code><pre></code> element. This option takes a "
|
||||
"space or comma separated list of tag names. "
|
||||
"<br/>"
|
||||
"Unless you declare new tags, Tidy will refuse to generate a tidied file if "
|
||||
"the input includes previously unknown tags. "
|
||||
"<br/>"
|
||||
"Note you can not as yet add new CDATA elements. "
|
||||
"<br/>"
|
||||
"This option is ignored in XML mode. "
|
||||
,TidyPreTagsLinks
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue