From 4246c2c462e9432db39a90e33963083170c885c1 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Wed, 15 Jul 2015 19:34:02 +0200 Subject: [PATCH] Issue #230: Need to KEEP this newline char sometimes. This is a case where the lexer, in GetTokenfromStream, does NOT eat any trailing newline after a LEX_STARTTAG: case... So far have identified pre, script, style as NEEDING this user newline character for later pprint output. Any others? --- src/lexer.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lexer.c b/src/lexer.c index 7020006..07b5274 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -2624,6 +2624,15 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode ) /* special check needed for CRLF sequence */ /* this doesn't apply to empty elements */ /* nor to preformatted content that needs escaping */ + /*\ + * Issue #230: Need to KEEP this user newline character in certain + * circumstances, certainly for
,