X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/972a8d7ae7f6cd2ac8f3987e69555ad859c46dac..25a03c3be8abe22992cab3dfa19855dac3f6e35f:/tree.c?ds=inline diff --git a/tree.c b/tree.c index 9125e6a5..6c0ff01c 100644 --- a/tree.c +++ b/tree.c @@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.21 2010/06/19 20:46:28 kristaps Exp $ */ +/* $Id: tree.c,v 1.24 2010/07/07 15:04:54 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -74,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";