=================================================================== RCS file: /cvs/mandoc/tree.c,v retrieving revision 1.20 retrieving revision 1.23 diff -u -p -r1.20 -r1.23 --- mandoc/tree.c 2010/05/17 22:11:42 1.20 +++ mandoc/tree.c 2010/06/29 19:20:38 1.23 @@ -1,6 +1,6 @@ -/* $Id: tree.c,v 1.20 2010/05/17 22:11:42 kristaps Exp $ */ +/* $Id: tree.c,v 1.23 2010/06/29 19:20:38 schwarze Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -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";