-/* $Id: tree.c,v 1.31 2011/01/03 13:59:21 kristaps Exp $ */
+/* $Id: tree.c,v 1.34 2011/02/06 22:02:58 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
case (MDOC_TBL):
t = "tbl";
break;
+ case (MDOC_EQN):
+ t = "eqn";
+ break;
default:
abort();
/* NOTREACHED */
break;
case (MDOC_TBL):
break;
+ case (MDOC_EQN):
+ p = "eqn";
+ break;
case (MDOC_ROOT):
p = "root";
break;
case (MAN_TBL):
t = "tbl";
break;
+ case (MAN_EQN):
+ t = "eqn";
+ break;
default:
abort();
/* NOTREACHED */
break;
case (MAN_TBL):
break;
+ case (MAN_EQN):
+ p = "eqn";
+ break;
default:
abort();
/* NOTREACHED */
for (i = 0; i < indent; i++)
putchar('\t');
- printf("tbl: ");
-
switch (sp->pos) {
case (TBL_SPAN_HORIZ):
putchar('-');
default:
break;
}
- printf("[%s%s]", dp->string, dp->layout ? "" : "*");
- if (dp->next)
- putchar(' ');
+ printf("[\"%s\"", dp->string ? dp->string : "");
+ if (dp->spans)
+ printf("(%d)", dp->spans);
+ if (NULL == dp->layout)
+ putchar('*');
+ putchar(']');
+ putchar(' ');
}
+
+ printf("(tbl) %d:1", sp->line);
}