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
This commit is contained in:
Geoff McLane 2015-01-25 21:00:13 +01:00
parent f1297f718c
commit 813f1c8a13
1 changed files with 2 additions and 0 deletions

View File

@ -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 );