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

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 ); */