summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 13:37:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 13:37:04 +0000
commit62a9685b8f83f61948148be5fd01ec614799aeea (patch)
tree5ebaad6490d0723db30fe56c7b089b009a72e490 /tree.c
parentd98b3838b2d49efc6220b1dc7bdb995e37cd4d10 (diff)
downloadmandoc-62a9685b8f83f61948148be5fd01ec614799aeea.tar.gz
Add eqn subexpression fonts.
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tree.c b/tree.c
index 82bb0a06..722e396c 100644
--- a/tree.c
+++ b/tree.c
@@ -270,15 +270,18 @@ print_box(const struct eqn_box *ep, int indent)
switch (ep->type) {
case (EQN_ROOT):
- printf("eqn-root(%d)\n", ep->mark);
+ printf("eqn-root(%d, %d)\n",
+ ep->font, ep->mark);
print_box(ep->child, indent + 1);
break;
case (EQN_SUBEXPR):
- printf("eqn-subxpr(%d)\n", ep->mark);
+ printf("eqn-subxpr(%d, %d)\n",
+ ep->font, ep->mark);
print_box(ep->child, indent + 1);
break;
case (EQN_TEXT):
- printf("eqn-text(%d): [%s]\n", ep->mark, ep->text);
+ printf("eqn-text(%d, %d): [%s]\n",
+ ep->font, ep->mark, ep->text);
break;
default:
break;