=================================================================== RCS file: /cvs/mandoc/tree.c,v retrieving revision 1.19 retrieving revision 1.23 diff -u -p -r1.19 -r1.23 --- mandoc/tree.c 2010/01/01 17:14:31 1.19 +++ mandoc/tree.c 2010/06/29 19:20:38 1.23 @@ -1,6 +1,6 @@ -/* $Id: tree.c,v 1.19 2010/01/01 17:14:31 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 @@ -23,6 +23,8 @@ #include #include +#include "mandoc.h" +#include "regs.h" #include "mdoc.h" #include "man.h" #include "main.h" @@ -73,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";