Fix #158 - remove inserted newlines in pre

This commit is contained in:
Cameron Moy 2015-07-13 16:31:52 -04:00
parent 97c7065177
commit d50391a984

View file

@ -2162,14 +2162,12 @@ void TY_(PPrintTree)( TidyDocImpl* doc, uint mode, uint indent, Node *node )
PPrintTag( doc, mode, indent, node ); PPrintTag( doc, mode, indent, node );
indent = 0; indent = 0;
TY_(PFlushLine)( doc, indent );
for ( content = node->content; content; content = content->next ) for ( content = node->content; content; content = content->next )
{ {
TY_(PPrintTree)( doc, (mode | PREFORMATTED | NOWRAP), TY_(PPrintTree)( doc, (mode | PREFORMATTED | NOWRAP),
indent, content ); indent, content );
} }
PCondFlushLine( doc, indent );
indent = indprev; indent = indprev;
PPrintEndTag( doc, mode, indent, node ); PPrintEndTag( doc, mode, indent, node );