summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 13:18:24 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 13:18:24 +0000
commitd98b3838b2d49efc6220b1dc7bdb995e37cd4d10 (patch)
tree78b6d8a9ac3e4bf00688322b73cc0728f1ee1fa1 /tree.c
parent5bbaf34f67268b1270c7dd46448c7cf7556805f8 (diff)
downloadmandoc-d98b3838b2d49efc6220b1dc7bdb995e37cd4d10.tar.gz
Add support for markers. These decorate the last box: see eqn.7.
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tree.c b/tree.c
index e83a5bce..82bb0a06 100644
--- a/tree.c
+++ b/tree.c
@@ -270,15 +270,15 @@ print_box(const struct eqn_box *ep, int indent)
switch (ep->type) {
case (EQN_ROOT):
- puts("eqn-root");
+ printf("eqn-root(%d)\n", ep->mark);
print_box(ep->child, indent + 1);
break;
case (EQN_SUBEXPR):
- puts("eqn-subxpr");
+ printf("eqn-subxpr(%d)\n", ep->mark);
print_box(ep->child, indent + 1);
break;
case (EQN_TEXT):
- printf("eqn-text: [%s]\n", ep->text);
+ printf("eqn-text(%d): [%s]\n", ep->mark, ep->text);
break;
default:
break;