=================================================================== RCS file: /cvs/mandoc/tree.c,v retrieving revision 1.30 retrieving revision 1.32 diff -u -p -r1.30 -r1.32 --- mandoc/tree.c 2011/01/02 20:34:05 1.30 +++ mandoc/tree.c 2011/01/10 14:40:30 1.32 @@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.30 2011/01/02 20:34:05 kristaps Exp $ */ +/* $Id: tree.c,v 1.32 2011/01/10 14:40:30 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -249,21 +249,8 @@ static void print_span(const struct tbl_span *sp, int indent) { const struct tbl_dat *dp; - const struct tbl_head *hp; int i; - if (TBL_SPAN_FIRST & sp->flags) { - for (i = 0; i < indent; i++) - putchar('\t'); - printf("tbl-head: "); - for (hp = sp->head; hp; hp = hp->next) { - printf("[%d]", hp->width); - if (hp->next) - putchar(' '); - } - putchar('\n'); - } - for (i = 0; i < indent; i++) putchar('\t'); @@ -295,7 +282,12 @@ print_span(const struct tbl_span *sp, int indent) default: break; } - printf("[%s%s]", dp->string, dp->layout ? "" : "*"); + printf("[\"%s\"", dp->string ? dp->string : ""); + if (dp->spans) + printf("(%d)", dp->spans); + if (NULL == dp->layout) + putchar('*'); + putchar(']'); if (dp->next) putchar(' '); }