X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/2bcccf0dba8f2c504e9c3597a11177aaca90023c..1d1acc2f68e2db828d54586d2a70fd956ae0d006:/tree.c diff --git a/tree.c b/tree.c index 61ce1b4f..6c0ff01c 100644 --- 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 * @@ -24,7 +24,6 @@ #include #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";