]> git.cameronkatri.com Git - mandoc.git/blobdiff - tree.c
Allow -man to process EQN as well. Also fix a segfault in missing case
[mandoc.git] / tree.c
diff --git a/tree.c b/tree.c
index 65652adb2111bc3e4775b598cc0cbbf0d9067d64..21bd8dafd8df310ddce1c7ed7882e411e4dc7dad 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -1,4 +1,4 @@
-/*     $Id: tree.c,v 1.34 2011/02/06 22:02:58 kristaps Exp $ */
+/*     $Id: tree.c,v 1.36 2011/02/09 09:18:15 kristaps Exp $ */
 /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -132,7 +132,7 @@ print_mdoc(const struct mdoc_node *n, int indent)
        case (MDOC_TBL):
                break;
        case (MDOC_EQN):
-               p = "eqn";
+               p = n->eqn->data;
                break;
        case (MDOC_ROOT):
                p = "root";
@@ -233,7 +233,7 @@ print_man(const struct man_node *n, int indent)
        case (MAN_TBL):
                break;
        case (MAN_EQN):
-               p = "eqn";
+               p = n->eqn->data;
                break;
        default:
                abort();