From 813f1c8a13a5aef91d54aaba8f706b05e4540e91 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Sun, 25 Jan 2015 21:00:13 +0100 Subject: [PATCH] Issue #56 - long outstanding bug on script tag Added a PCondFlushLine before emitting the script tag Certainly looks better, but need to check for any regression --- src/pprint.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pprint.c b/src/pprint.c index b715e5b..bdbd3b1 100644 --- a/src/pprint.c +++ b/src/pprint.c @@ -1775,6 +1775,8 @@ 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 );