diff --git a/NEWS b/NEWS index 0d777cfd..93d3a524 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,12 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier 1.1.1, unknown projected release date - Various documentation updates - Fixed parse error in configuration documentation script +- Fixed fatal error in benchmark scripts, slightly augmented +- As far as possible, whitespace is preserved in-between table children +- Configuration option to optionally Tidy up output for indentation to make up + for dropped whitespace by DOMLex (pretty-printing for the entire application + should be done by a page-wide Tidy) +- Sample test-settings.php file included 1.1.0, released 2006-09-16 - Made URI validator more forgiving: will ignore leading and trailing diff --git a/library/HTMLPurifier/Generator.php b/library/HTMLPurifier/Generator.php index 7adfa81a..72ca3921 100644 --- a/library/HTMLPurifier/Generator.php +++ b/library/HTMLPurifier/Generator.php @@ -26,14 +26,16 @@ HTMLPurifier_ConfigSchema::define( // extension constraints could be factored into ConfigSchema HTMLPurifier_ConfigSchema::define( 'Core', 'TidyFormat', false, 'bool', - 'Determines whether or not to run Tidy on the final output for pretty '. - 'formatting reasons, such as indentation and wrap. This can greatly '. + '
Determines whether or not to run Tidy on the final output for pretty '. + 'formatting reasons, such as indentation and wrap.
This can greatly '. 'improve readability for editors who are hand-editing the HTML, but is '. 'by no means necessary as HTML Purifier has already fixed all major '. - 'errors the HTML may have had and could potentially result in data loss '. - 'due to bugs in Tidy. Tidy is a non-default extension, and this directive '. - 'will silently fail if Tidy is not available. This '. - 'directive was available since 1.1.1.' + 'errors the HTML may have had. Tidy is a non-default extension, and this directive '. + 'will silently fail if Tidy is not available.
If you are looking to make '. + 'the overall look of your page\'s source better, I recommend running Tidy '. + 'on the entire page rather than just user-content (after all, the '. + 'indentation relative to the containing blocks will be incorrect).
This '. + 'directive was available since 1.1.1.
' ); /** diff --git a/test-settings.sample.php b/test-settings.sample.php new file mode 100644 index 00000000..1fbcfe4e --- /dev/null +++ b/test-settings.sample.php @@ -0,0 +1,17 @@ + \ No newline at end of file