From 4408516c3298a7cb5ed04648be3ca4d8e732bf01 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Sat, 7 Apr 2012 16:33:10 +0900 Subject: [PATCH] Clarify doc for wrap-attributes option. --- quickref.html | 4 ++-- src/localize.c | 15 ++++++++++++--- src/version.h | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/quickref.html b/quickref.html index 4fdc5d3ec..fcb6a1773 100644 --- a/quickref.html +++ b/quickref.html @@ -8,7 +8,7 @@

Quick Reference

HTML Tidy Configuration Options

-

Version: https://github.com/w3c/tidy-html5/tree/1f21625

+

Version: https://github.com/w3c/tidy-html5/tree/c66f165

HTML, XHTML, XML
@@ -2036,7 +2036,7 @@

HTML Tidy Configuration Options

- This option specifies if Tidy should line wrap attribute values, for easier editing. This option can be set independently of wrap-script-literals. + 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".   diff --git a/src/localize.c b/src/localize.c index d62fa07bf..b986e98fb 100644 --- a/src/localize.c +++ b/src/localize.c @@ -746,9 +746,18 @@ static const TidyOptionDoc option_docs[] = "pseudo elements, which look like: <% ... %>. " }, {TidyWrapAttVals, - "This option specifies if Tidy should line wrap attribute values, for " - "easier editing. This option can be set independently of " - "wrap-script-literals. " + "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\". " ,TidyWrapAttValsLinks }, {TidyWrapJste, diff --git a/src/version.h b/src/version.h index 534f4802f..255a2940d 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/880221e"; \ No newline at end of file +static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/c66f165"; \ No newline at end of file