diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 12:30:44 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 12:30:44 +0000 |
commit | 29705bfc7b3e67b1a949858f4629bf261e31def1 (patch) | |
tree | a566d92de2a211c3ccefb76078da044269b1e5c2 /tree.c | |
parent | 984843a13d3cf51a40ccae5218578c091429a4a1 (diff) | |
download | mandoc-29705bfc7b3e67b1a949858f4629bf261e31def1.tar.gz |
Support nested `{, }' subexpressions in eqn. Document in code.
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |