Merge pull request #229 from camoy/master
Fix #158 - remove inserted newlines in pre It seems this does fix this specific issue... thanks... See #228 for some other comments on this...
This commit is contained in:
commit
2c886155d0
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue