From d1934207297364827ae4c82c5eff480dbd7d535f Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Sat, 7 Apr 2012 16:41:06 +0900 Subject: [PATCH] Minor editorial update. --- quickref.html | 4 +++- src/localize.c | 6 +++--- src/version.h | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/quickref.html b/quickref.html index fcb6a17..b27d244 100644 --- a/quickref.html +++ b/quickref.html @@ -2033,10 +2033,12 @@ Default: no
Example: y/n, yes/no, t/f, true/false, 1/0 wrap-script-literals +
+ literal-attributes - 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 the 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. 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 value the literal-attributes option to "no". + 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 the 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. 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 "no".   diff --git a/src/localize.c b/src/localize.c index b986e98..4dccd4e 100644 --- a/src/localize.c +++ b/src/localize.c @@ -326,7 +326,7 @@ static const TidyOptionId TidyIndentContentLinks[] = static const TidyOptionId TidyIndentSpacesLinks[] = { TidyIndentContent, TidyUnknownOption }; static const TidyOptionId TidyWrapAttValsLinks[] = - { TidyWrapScriptlets, TidyUnknownOption }; + { TidyWrapScriptlets, TidyLiteralAttribs, TidyUnknownOption }; static const TidyOptionId TidyWrapScriptletsLinks[] = { TidyWrapAttVals, TidyUnknownOption }; static const TidyOptionId TidyCharEncodingLinks[] = @@ -750,14 +750,14 @@ static const TidyOptionDoc option_docs[] = "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 the this option can be set " + "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. " "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 value the literal-attributes option to \"no\". " + "through unchanged, set the literal-attributes option to \"no\". " ,TidyWrapAttValsLinks }, {TidyWrapJste, diff --git a/src/version.h b/src/version.h index 255a294..da34636 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/c66f165"; \ No newline at end of file +static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/4408516"; \ No newline at end of file