From ae620a63a2d87948466cf5d0f01bee50f23752c3 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Fri, 17 Jul 2015 19:00:16 +0200 Subject: [PATCH] merge @camoy fix #158 to this branch --- src/pprint.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pprint.c b/src/pprint.c index e62dc2e..4b4593d 100644 --- a/src/pprint.c +++ b/src/pprint.c @@ -2192,26 +2192,27 @@ void TY_(PPrintTree)( TidyDocImpl* doc, uint mode, uint indent, Node *node ) { Bool classic = TidyClassicVS; /* #228 - cfgBool( doc, TidyVertSpace ); */ uint indprev = indent; - PCondFlushLineSmart( doc, indent ); - PCondFlushLineSmart( doc, indent ); + PCondFlushLineSmart( doc, indent ); /* about to add
 tag - clear any previous */
 
             /* insert extra newline for classic formatting */
             if (classic && node->parent && node->parent->content != node)
             {
                 TY_(PFlushLineSmart)( doc, indent );
             }
-            PPrintTag( doc, mode, indent, node );
+
+            PPrintTag( doc, mode, indent, node );   /* add 
 or