From 6f5592ae60131a5c6fe8208c0ba87fb62661ec8b Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Mon, 25 Jun 2007 19:18:55 +0000 Subject: [PATCH] [2.0.1] Normalize newlines to \n for internal processing. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1235 48356398-32a2-884e-a903-53898d9a118a --- NEWS | 3 +++ library/HTMLPurifier/Generator.php | 17 +++++++++++++++-- library/HTMLPurifier/Injector/AutoParagraph.php | 8 ++++---- library/HTMLPurifier/Lexer.php | 4 ++++ library/HTMLPurifier/Lexer/DirectLex.php | 2 +- tests/HTMLPurifier/ChildDef/TableTest.php | 5 +++-- tests/HTMLPurifier/GeneratorTest.php | 1 + tests/HTMLPurifier/Lexer/DirectLexTest.php | 17 ++++------------- 8 files changed, 35 insertions(+), 22 deletions(-) diff --git a/NEWS b/NEWS index 225e65ca..3c6bfb7a 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,9 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier ! Experimental AutoFormat functionality added: auto-paragraph and linkify your HTML input by setting %AutoFormat.AutoParagraph and %AutoFormat.Linkify to true +! Newlines normalized internally, and then converted back to the + value of PHP_EOL. If this is not desired, set your newline format + using %Output.Newline. - Clean up special case code for