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