Removed the one callback per line filter. Library user can filter this himself.
This commit is contained in:
parent
dcd8f16f73
commit
4adc07fd65
|
@ -2118,14 +2118,12 @@ void TY_(PPrintTree)( TidyDocImpl* doc, uint mode, uint indent, Node *node )
|
||||||
Node *content, *last;
|
Node *content, *last;
|
||||||
uint spaces = cfg( doc, TidyIndentSpaces );
|
uint spaces = cfg( doc, TidyIndentSpaces );
|
||||||
Bool xhtml = cfgBool( doc, TidyXhtmlOut );
|
Bool xhtml = cfgBool( doc, TidyXhtmlOut );
|
||||||
uint lastline = 0;
|
|
||||||
|
|
||||||
if ( node == NULL )
|
if ( node == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (doc->progressCallback)
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue