summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tree.c b/tree.c
index 1156a0d7..a5071b29 100644
--- a/tree.c
+++ b/tree.c
@@ -75,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";