summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-22 09:57:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-22 09:57:04 +0000
commit3e9d2580dc6eb151ec597b347b59c378eacedb55 (patch)
treef3ac5ef0194702826dfa0cadcec1474747d16ad7 /tree.c
parent85ad7222c5fd305322c7aa679840eedd807ef942 (diff)
downloadmandoc-3e9d2580dc6eb151ec597b347b59c378eacedb55.tar.gz
Give lists their own eqn function.
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tree.c b/tree.c
index 96ca7eb3..866e282a 100644
--- a/tree.c
+++ b/tree.c
@@ -276,6 +276,15 @@ print_box(const struct eqn_box *ep, int indent)
ep->pos, ep->font, ep->mark);
print_box(ep->first, indent + 1);
break;
+ case (EQN_LIST):
+ printf("eqn-list(%d, %d, %d, %d, %d, %d, \"%s\", \"%s\")\n",
+ EQN_DEFSIZE == ep->size ? 0 : ep->size,
+ ep->pos, ep->font, ep->mark,
+ ep->pile, ep->above,
+ ep->left ? ep->left : "",
+ ep->right ? ep->right : "");
+ print_box(ep->first, indent + 1);
+ break;
case (EQN_SUBEXPR):
printf("eqn-subxpr(%d, %d, %d, %d, %d, %d, \"%s\", \"%s\")\n",
EQN_DEFSIZE == ep->size ? 0 : ep->size,