=================================================================== RCS file: /cvs/mandoc/tree.c,v retrieving revision 1.21 retrieving revision 1.23 diff -u -p -r1.21 -r1.23 --- mandoc/tree.c 2010/06/19 20:46:28 1.21 +++ mandoc/tree.c 2010/06/29 19:20:38 1.23 @@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.21 2010/06/19 20:46:28 kristaps Exp $ */ +/* $Id: tree.c,v 1.23 2010/06/29 19:20:38 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -24,6 +24,7 @@ #include #include "mandoc.h" +#include "regs.h" #include "mdoc.h" #include "man.h" #include "main.h" @@ -74,7 +75,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";