From 9fb90f55d4e29dd26c0f63380b6dca0fdb2fd093 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Mon, 26 Jan 2015 12:23:41 +0100 Subject: [PATCH] Oops, that fix should be after a potential new line in head --- src/pprint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pprint.c b/src/pprint.c index bdbd3b1..3ce82df 100644 --- a/src/pprint.c +++ b/src/pprint.c @@ -1775,11 +1775,11 @@ void PPrintScriptStyle( TidyDocImpl* doc, uint mode, uint indent, Node *node ) int contentIndent = -1; Bool xhtmlOut = cfgBool( doc, TidyXhtmlOut ); - PCondFlushLine( doc, indent ); /* Issue #56 - long oustanding bug - flush any existing closing tag */ - if ( InsideHead(doc, node) ) TY_(PFlushLine)( doc, indent ); + PCondFlushLine( doc, indent ); /* Issue #56 - long oustanding bug - flush any existing closing tag */ + PPrintTag( doc, mode, indent, node ); /* use zero indent here, see http://tidy.sf.net/bug/729972 */