From 66a597f5b7a131f1a4b7e60b82bb4532dc489117 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Tue, 10 Mar 2015 12:27:29 +0100 Subject: [PATCH] related to issue #180 - remove additional line unless 'classic' --- src/pprint.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pprint.c b/src/pprint.c index 5e14148..64bb53c 100644 --- a/src/pprint.c +++ b/src/pprint.c @@ -2220,7 +2220,13 @@ void TY_(PPrintTree)( TidyDocImpl* doc, uint mode, uint indent, Node *node ) contentIndent += spaces; 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 ); /* do not omit elements with attributes */