add comment only for potential fix of Issue #8

This commit is contained in:
Geoff McLane 2015-02-10 15:32:05 +01:00
parent 8b362b5f37
commit ea50bd30e7
1 changed files with 4 additions and 0 deletions

View File

@ -1985,6 +1985,10 @@ void TY_(PPrintTree)( TidyDocImpl* doc, uint mode, uint indent, Node *node )
else if ( TY_(nodeCMIsEmpty)(node) ||
(node->type == StartEndTag && !xhtml) )
{
/* Issue #8 - flush to new line?
maybe use if ( TY_(nodeHasCM)(node, CM_BLOCK) ) instead
or remove the CM_INLINE from the tag
*/
if ( ! TY_(nodeHasCM)(node, CM_INLINE) )
PCondFlushLine( doc, indent );