X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/95356d6189f5e5d41011a7cb60176f147e1fff7d..0d3c1e62ca62e820e20a744760c2767cee37d5c9:/tree.c?ds=inline diff --git a/tree.c b/tree.c index f39b1cab..6c0ff01c 100644 --- a/tree.c +++ b/tree.c @@ -1,6 +1,6 @@ -/* $Id: tree.c,v 1.20 2010/05/17 22:11:42 kristaps Exp $ */ +/* $Id: tree.c,v 1.24 2010/07/07 15:04:54 kristaps 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 @@ -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";