From 4adc07fd659ec0d40864b04a94d85dd542d0e5d0 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Sat, 28 Nov 2015 15:43:34 +0800 Subject: [PATCH] Removed the one callback per line filter. Library user can filter this himself. --- src/pprint.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pprint.c b/src/pprint.c index c42d2fc..775f148 100644 --- a/src/pprint.c +++ b/src/pprint.c @@ -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)