related to issue #180 - remove additional line unless 'classic'

This commit is contained in:
Geoff McLane 2015-03-10 12:27:29 +01:00
parent 9caab688f1
commit 66a597f5b7

View file

@ -2220,7 +2220,13 @@ void TY_(PPrintTree)( TidyDocImpl* doc, uint mode, uint indent, Node *node )
contentIndent += spaces; contentIndent += spaces;
PCondFlushLine( doc, indent ); PCondFlushLine( doc, indent );
if ( indsmart && node->prev != NULL )
/*\
* Issue #180 - with the above PCondFlushLine,
* this adds an uneccessary additional line!
* Maybe only if 'classic' ie --vertical-space yes
\*/
if ( indsmart && node->prev != NULL && classic)
TY_(PFlushLine)( doc, indent ); TY_(PFlushLine)( doc, indent );
/* do not omit elements with attributes */ /* do not omit elements with attributes */