From 807fed4ff6b25f908ad77cc75b9844f10dca4827 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Sun, 1 Nov 2015 19:05:03 +0800 Subject: [PATCH] Documentation improvements. --- src/localize.c | 73 +++++++++++++++++++++++++++++++------------------- 1 file changed, 45 insertions(+), 28 deletions(-) diff --git a/src/localize.c b/src/localize.c index 0f8783c..cdd8e05 100755 --- a/src/localize.c +++ b/src/localize.c @@ -678,10 +678,14 @@ static const TidyOptionDoc option_docs[] = }, {TidyNumEntities, "This option specifies if Tidy should output entities other than the " - "built-in HTML entities (&, <, > and ") in " - "the numeric rather than the named entity form. Only entities compatible " - "with the DOCTYPE declaration generated are used. Entities that can be " - "represented in the output encoding are translated correspondingly. " + "built-in HTML entities (&, <, " + ">, and ") in the numeric rather " + "than the named entity form. " + "
" + "Only entities compatible with the DOCTYPE declaration generated are used. " + "
" + "Entities that can be represented in the output encoding are translated " + "correspondingly. " ,TidyNumEntitiesLinks }, {TidyHtmlOut, @@ -691,30 +695,38 @@ static const TidyOptionDoc option_docs[] = {TidyXhtmlOut, "This option specifies if Tidy should generate pretty printed output, " "writing it as extensible HTML. " + "
" "This option causes Tidy to set the DOCTYPE and default namespace as " - "appropriate to XHTML. If a DOCTYPE or namespace is given they will " - "checked for consistency with the content of the document. In the case of " - "an inconsistency, the corrected values will appear in the output. For " - "XHTML, entities can be written as named or numeric entities according to " - "the setting of the \"numeric-entities\" option. The original case of tags " - "and attributes will be preserved, regardless of other options. " + "appropriate to XHTML, and will use the corrected value in output " + "regardless of other sources. " + "
" + "For XHTML, entities can be written as named or numeric entities according " + "to the setting of numeric-entities. " + "
" + "The original case of tags and attributes will be preserved, regardless of " + "other options. " }, {TidyXmlOut, "This option specifies if Tidy should pretty print output, writing it as " - "well-formed XML. Any entities not defined in XML 1.0 will be written as " - "numeric entities to allow them to be parsed by a XML parser. The original " - "case of tags and attributes will be preserved, regardless of other " - "options. " + "well-formed XML. " + "
" + "Any entities not defined in XML 1.0 will be written as numeric entities to " + "allow them to be parsed by an XML parser. " + "
" + "The original case of tags and attributes will be preserved, regardless of " + "other options. " }, {TidyQuoteAmpersand, - "This option specifies if Tidy should output unadorned & characters as " - "&. " + "This option specifies if Tidy should output unadorned & " + "characters as &. " }, {TidyQuoteMarks, - "This option specifies if Tidy should output " characters as " - "" as is preferred by some editing environments. The apostrophe " - "character ' is written out as ' since many web browsers don't yet " - "support '. " + "This option specifies if Tidy should output " characters " + "as " as is preferred by some editing environments. " + "
" + "The apostrophe character ' is written out as " + "' since many web browsers don't yet support " + "'. " }, {TidyQuoteNbsp, "This option specifies if Tidy should output non-breaking space characters " @@ -722,24 +734,29 @@ static const TidyOptionDoc option_docs[] = }, {TidyDuplicateAttrs, "This option specifies if Tidy should keep the first or last attribute, if " - "an attribute is repeated, e.g. has two align attributes. " + "an attribute is repeated, e.g. has two align attributes. " , TidyDuplicateAttrsLinks }, {TidySortAttributes, "This option specifies that tidy should sort attributes within an element " - "using the specified sort algorithm. If set to \"alpha\", the algorithm is " - "an ascending alphabetic sort. " + "using the specified sort algorithm. If set to alpha, the " + "algorithm is an ascending alphabetic sort. " }, {TidyReplaceColor, "This option specifies if Tidy should replace numeric values in color " - "attributes by HTML/XHTML color names where defined, e.g. replace " - "\"#ffffff\" with \"white\". " + "attributes with HTML/XHTML color names where defined, e.g. replace " + "#ffffff with white. " }, {TidyBodyOnly, "This option specifies if Tidy should print only the contents of the " - "body tag as an HTML fragment. If set to \"auto\", this is performed only " - "if the body tag has been inferred. Useful for incorporating " - "existing whole pages as a portion of another page. " + "body tag as an HTML fragment. " + "
" + "If set to auto, this is performed only if the body tag has " + "been inferred. " + "
" + "Useful for incorporating existing whole pages as a portion of another " + "page. " + "
" "This option has no effect if XML output is requested. " }, {TidyUpperCaseAttrs,