summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 12:30:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 12:30:44 +0000
commit29705bfc7b3e67b1a949858f4629bf261e31def1 (patch)
treea566d92de2a211c3ccefb76078da044269b1e5c2 /tree.c
parent984843a13d3cf51a40ccae5218578c091429a4a1 (diff)
downloadmandoc-29705bfc7b3e67b1a949858f4629bf261e31def1.tar.gz
Support nested `{, }' subexpressions in eqn. Document in code.
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/tree.c b/tree.c
index b4f14523..e83a5bce 100644
--- a/tree.c
+++ b/tree.c
@@ -272,14 +272,19 @@ print_box(const struct eqn_box *ep, int indent)
case (EQN_ROOT):
puts("eqn-root");
print_box(ep->child, indent + 1);
- return;
+ break;
+ case (EQN_SUBEXPR):
+ puts("eqn-subxpr");
+ print_box(ep->child, indent + 1);
+ break;
case (EQN_TEXT):
printf("eqn-text: [%s]\n", ep->text);
- print_box(ep->next, indent);
- return;
+ break;
default:
break;
}
+
+ print_box(ep->next, indent);
}
static void