add row/col to DEBUG output

This commit is contained in:
Geoff McLane 2015-02-05 18:24:02 +01:00
parent 383a901990
commit 66951a562a

View file

@ -53,6 +53,9 @@ static void Show_Node( TidyDocImpl* doc, const char *msg, Node *node )
{
Lexer* lexer = doc->lexer;
Bool lex = ((msg[0] == 'l')&&(msg[1] == 'e')) ? yes : no;
int line = ( doc->lexer ? doc->lexer->lines : 0 );
int col = ( doc->lexer ? doc->lexer->columns : 0 );
SPRTF("R=%d C=%d: ", line, col );
if (lexer && lexer->token && (lexer->token->type == TextNode)) {
if (show_attrs) {
SPRTF("Returning %s TextNode ... %s\n", msg,