diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 13:18:24 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 13:18:24 +0000 |
commit | d98b3838b2d49efc6220b1dc7bdb995e37cd4d10 (patch) | |
tree | 78b6d8a9ac3e4bf00688322b73cc0728f1ee1fa1 /tree.c | |
parent | 5bbaf34f67268b1270c7dd46448c7cf7556805f8 (diff) | |
download | mandoc-d98b3838b2d49efc6220b1dc7bdb995e37cd4d10.tar.gz |
Add support for markers. These decorate the last box: see eqn.7.
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |