]> git.cameronkatri.com Git - mandoc.git/blobdiff - tree.c
`Ad' is supposed to underline. Found whilst trolling through manuals.
[mandoc.git] / tree.c
diff --git a/tree.c b/tree.c
index 61ce1b4f049cd9c03488a9d1f8a8bca7c1e72749..6c0ff01c763b954957ee2a952cba62767b1f3cff 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -1,4 +1,4 @@
-/*     $Id: tree.c,v 1.22 2010/06/26 15:36:37 kristaps Exp $ */
+/*     $Id: tree.c,v 1.24 2010/07/07 15:04:54 kristaps Exp $ */
 /*
  * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -24,7 +24,6 @@
 #include <time.h>
 
 #include "mandoc.h"
-#include "regs.h"
 #include "mdoc.h"
 #include "man.h"
 #include "main.h"
@@ -75,7 +74,10 @@ print_mdoc(const struct mdoc_node *n, int indent)
                t = "block-head";
                break;
        case (MDOC_BODY):
-               t = "block-body";
+               if (n->end)
+                       t = "body-end";
+               else
+                       t = "block-body";
                break;
        case (MDOC_TAIL):
                t = "block-tail";