]> git.cameronkatri.com Git - mandoc.git/blobdiff - tree.c
Full support for eqn positionals (above, over, sup, sub, etc.).
[mandoc.git] / tree.c
diff --git a/tree.c b/tree.c
index 0b05b5ea09622b52db239dd241bcecaf5ce8a4f4..1c03c716347aa62034cd66a1b6b10dc8b0596f3a 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -1,4 +1,4 @@
-/*     $Id: tree.c,v 1.39 2011/07/21 12:30:44 kristaps Exp $ */
+/*     $Id: tree.c,v 1.42 2011/07/21 14:13:00 kristaps Exp $ */
 /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -270,15 +270,18 @@ print_box(const struct eqn_box *ep, int indent)
 
        switch (ep->type) {
        case (EQN_ROOT):
-               puts("eqn-root");
+               printf("eqn-root(%d, %d, %d)\n", 
+                       ep->pos, ep->font, ep->mark);
                print_box(ep->child, indent + 1);
                break;
        case (EQN_SUBEXPR):
-               puts("eqn-subxpr");
+               printf("eqn-subxpr(%d, %d, %d)\n", 
+                       ep->pos, ep->font, ep->mark);
                print_box(ep->child, indent + 1);
                break;
        case (EQN_TEXT):
-               printf("eqn-text: [%s]\n", ep->text);
+               printf("eqn-text(%d, %d, %d): [%s]\n", 
+                       ep->pos, ep->font, ep->mark, ep->text);
                break;
        default:
                break;