Removed the one callback per line filter. Library user can filter this himself.

This commit is contained in:
Jim Derry 2015-11-28 15:43:34 +08:00
parent dcd8f16f73
commit 4adc07fd65
1 changed files with 1 additions and 3 deletions

View File

@ -2118,15 +2118,13 @@ void TY_(PPrintTree)( TidyDocImpl* doc, uint mode, uint indent, Node *node )
Node *content, *last;
uint spaces = cfg( doc, TidyIndentSpaces );
Bool xhtml = cfgBool( doc, TidyXhtmlOut );
uint lastline = 0;
if ( node == NULL )
return;
if (doc->progressCallback)
{
if (doc->pprint.line > lastline)
doc->progressCallback( tidyImplToDoc(doc), node->line, node->column, doc->pprint.line );
doc->progressCallback( tidyImplToDoc(doc), node->line, node->column, doc->pprint.line );
}
if (node->type == TextNode)