From d0ac990636f22ef86e8ce0a076504a9e21583ee4 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Mon, 2 Nov 2015 12:06:37 +0800 Subject: [PATCH] More description beautification. --- src/localize.c | 102 ++++++++++++++++++++++++++++++------------------- 1 file changed, 63 insertions(+), 39 deletions(-) diff --git a/src/localize.c b/src/localize.c index cdd8e05..f210c87 100755 --- a/src/localize.c +++ b/src/localize.c @@ -761,30 +761,37 @@ static const TidyOptionDoc option_docs[] = }, {TidyUpperCaseAttrs, "This option specifies if Tidy should output attribute names in upper " - "case. The default is no, which results in lower case attribute names, " - "except for XML input, where the original case is preserved. " + "case. " + "
" + "The default is no, which results in lower case attribute " + "names, except for XML input, where the original case is preserved. " }, {TidyUpperCaseTags, "This option specifies if Tidy should output tag names in upper case. " - "The default is no, which results in lower case tag names, except for XML " - "input, where the original case is preserved. " + "
" + "The default is no which results in lower case tag names, " + "except for XML input where the original case is preserved. " }, {TidyWord2000, "This option specifies if Tidy should go to great pains to strip out all " "the surplus stuff Microsoft Word 2000 inserts when you save Word " - "documents as \"Web pages\". Doesn't handle embedded images or VML. " + "documents as \"Web pages\". It doesn't handle embedded images or VML. " + "
" "You should consider using Word's \"Save As: Web Page, Filtered\". " }, {TidyAccessibilityCheckLevel, "This option specifies what level of accessibility checking, if any, " - "that Tidy should do. Level 0 is equivalent to Tidy Classic's " - "accessibility checking. " + "that Tidy should perform. " + "
" + "Level 0 (Tidy Classic) is equivalent to Tidy Classic's accessibility " + "checking. " + "
" "For more information on Tidy's accessibility checking, visit " " Tidy's Accessibility Page. " }, {TidyShowErrors, "This option specifies the number Tidy uses to determine if further errors " - "should be shown. If set to 0, then no errors are shown. " + "should be shown. If set to 0, then no errors are shown. " }, {TidyShowInfo, "This option specifies if Tidy should display info-level messages. " @@ -795,14 +802,18 @@ static const TidyOptionDoc option_docs[] = }, {TidyBreakBeforeBR, "This option specifies if Tidy should output a line break before each " - "<BR> element. " + "<br> element. " }, {TidyIndentContent, - "This option specifies if Tidy should indent block-level tags. If set to " - "\"auto\", this option causes Tidy to decide whether or not to indent the " - "content of tags such as TITLE, H1-H6, LI, TD, TD, or P depending on " - "whether or not the content includes a block-level element. You are " - "advised to avoid setting indent to yes as this can expose layout bugs in " + "This option specifies if Tidy should indent block-level tags. " + "
" + "If set to auto Tidy will decide whether or not to indent the " + "content of tags such as <title>, " + "<h1>-<h6>, <li>, " + "<td>, or <p> " + "based on the content including a block-level element. " + "
" + "Setting indent to yes can expose layout bugs in " "some browsers. " ,TidyIndentContentLinks }, @@ -816,18 +827,20 @@ static const TidyOptionDoc option_docs[] = }, {TidyLiteralAttribs, "This option specifies how Tidy deals with whitespace characters within " - "attribute values. If the value is \"no\" (the default), Tidy \"munges\" " - "or \"normalizes\" attribute values by replacing any newline or tab " - "character with a single space character, and further by replacing " - "any sequences of multiple whitespace characters with a single space. " - "To force tidy to preserve the original, literal values of all attributes, " - "and ensure that whitespace characters within attribute values are passed " - "through unchanged, set this option to \"yes\". " + "attribute values. " + "
" + "If the value is no Tidy normalizes attribute values by " + "replacing any newline or tab with a single space, and further by replacing " + "any contiguous whitespace with a single space. " + "
" + "To force Tidy to preserve the original, literal values of all attributes " + "and ensure that whitespace within attribute values is passed " + "through unchanged, set this option to yes. " }, {TidyShowMarkup, "This option specifies if Tidy should generate a pretty printed version " "of the markup. Note that Tidy won't generate a pretty printed version if " - "it finds significant errors (see force-output). " + "it finds significant errors (see force-output). " }, #if SUPPORT_ASIAN_ENCODINGS {TidyPunctWrap, @@ -836,40 +849,51 @@ static const TidyOptionDoc option_docs[] = }, #endif {TidyBurstSlides, - "Currently not used. Tidy Classic only. " + "This option has no function and is deprecated. " }, {TidyTabSize, "This option specifies the number of columns that Tidy uses between " "successive tab stops. It is used to map tabs to spaces when reading the " "input. " + "
" + "Tidy never outputs tabs." }, {TidyVertSpace, /* Issue #228 - changed to tri-state */ "This option specifies if Tidy should add some extra empty lines for " - "readability. Default is 'no'. If set to 'auto', will eliminate nearly " - "all newline chars." + "readability. " + "
" + "The default is no. " + "
" + "If set to auto' Tidy will eliminate nearly all newline " + "characters." }, {TidyWrapLen, - "This option specifies the right margin Tidy uses for line wrapping. Tidy " - "tries to wrap lines so that they do not exceed this length. Set wrap to " - "zero if you want to disable line wrapping. " + "This option specifies the right margin Tidy uses for line wrapping. " + "
" + "Tidy tries to wrap lines so that they do not exceed this length. " + "
" + "Set wrap to 0(zero) if you want to disable line " + "wrapping. " }, {TidyWrapAsp, "This option specifies if Tidy should line wrap text contained within ASP " - "pseudo elements, which look like: <% ... %>. " + "pseudo elements, which look like: <% ... %>. " }, {TidyWrapAttVals, - "This option specifies if Tidy should line-wrap attribute values, for " - "easier editing. Line wrapping means that if the value of an attribute " - "causes a line to exceed the width specified by the \"wrap\" option, " - "tidy will add one or more line breaks to the value, causing it to " - "wrapped into multiple lines. Note that this option can be set " - "independently of wrap-script-literals. Also note that by default, Tidy " - "\"munges\" or \"normalizes\" attribute values by replacing any newline " - "or tab character with a single space character, and further by replacing " - "any sequences of multiple whitespace characters with a single space. " + "This option specifies if Tidy should line-wrap attribute values, meaning " + "that if the value of an attribute causes a line to exceed the width " + "specified by wrap, Tidy will add one or more line breaks to " + "the value, causing it to be wrapped into multiple lines. " + "
" + "Note that this option can be set independently of " + "wrap-script-literals. " + "By default Tidy replaces any newline or tab with a single space and " + "replaces any sequences of whitespace with a single space. " + "
" "To force Tidy to preserve the original, literal values of all attributes, " "and ensure that whitespace characters within attribute values are passed " - "through unchanged, set the literal-attributes option to \"yes\". " + "through unchanged, set literal-attributes to " + "yes. " ,TidyWrapAttValsLinks }, {TidyWrapJste,