Merge pull request #708 from htacg/issue-697-1

Is #697 - Add NOWRAP to print of pre tag - PR #708
This commit is contained in:
Geoff McLane 2018-04-22 14:38:01 +02:00 committed by GitHub
commit 202ab98e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2143,7 +2143,8 @@ void TY_(PPrintTree)( TidyDocImpl* doc, uint mode, uint indent, Node *node )
TY_(PFlushLineSmart)( doc, indent );
}
PPrintTag( doc, mode, indent, node ); /* add <pre> or <textarea> tag */
/* Issue #697 - Add NOWRAP to the mode */
PPrintTag( doc, (mode | NOWRAP), indent, node ); /* add <pre> or <textarea> tag */
indent = 0;
/* @camoy Fix #158 - remove inserted newlines in pre - TY_(PFlushLineSmart)( doc, indent ); */