Issue #238 - only except the pre element

This commit is contained in:
Geoff McLane 2015-08-22 14:00:18 +02:00
parent 1d67dc940a
commit e79137de7f
1 changed files with 2 additions and 1 deletions

View File

@ -2628,8 +2628,9 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode )
* Issue #230: Need to KEEP this user newline character in certain
* circumstances, certainly for <pre>, <script>, <style>...
* Any others?
* Issue #238: maybe **ONLY** for <pre>
\*/
if ( nodeIsPRE(lexer->token) || nodeIsSCRIPT(lexer->token) || nodeIsSTYLE(lexer->token))
if ( nodeIsPRE(lexer->token) )
{
mode = Preformatted;
}