summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/tree.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-08-22 20:14:38 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-08-22 20:14:38 +0000
commite0f3ca1e45ac39a9d861bcdc913ff8d889157334 (patch)
treeb48bdeec68fb458f8247a1a4b225f748e872ec71 /usr.bin/mandoc/tree.c
parent12edb8cbd26b26458868c184cdfd77dd8d066233 (diff)
Kristaps@ significantly overhauled libman.
I'm committing this in one large chunk because in contrast to -mdoc, -man is mostly untested in OpenBSD anyway, so any fallout can be fixed in-tree. Among others, improved support for .IP, .HP, and .TP. Now in sync with release 1.9.0.
Diffstat (limited to 'usr.bin/mandoc/tree.c')
-rw-r--r--usr.bin/mandoc/tree.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/usr.bin/mandoc/tree.c b/usr.bin/mandoc/tree.c
index 82265a4c6a2..d4c6adc91e5 100644
--- a/usr.bin/mandoc/tree.c
+++ b/usr.bin/mandoc/tree.c
@@ -1,4 +1,4 @@
-/* $Id: tree.c,v 1.2 2009/06/14 23:00:57 schwarze Exp $ */
+/* $Id: tree.c,v 1.3 2009/08/22 20:14:37 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -163,6 +163,15 @@ print_man(const struct man_node *n, int indent)
case (MAN_TEXT):
t = "text";
break;
+ case (MAN_BLOCK):
+ t = "block";
+ break;
+ case (MAN_HEAD):
+ t = "block-head";
+ break;
+ case (MAN_BODY):
+ t = "block-body";
+ break;
default:
abort();
/* NOTREACHED */
@@ -173,6 +182,12 @@ print_man(const struct man_node *n, int indent)
p = n->string;
break;
case (MAN_ELEM):
+ /* FALLTHROUGH */
+ case (MAN_BLOCK):
+ /* FALLTHROUGH */
+ case (MAN_HEAD):
+ /* FALLTHROUGH */
+ case (MAN_BODY):
p = man_macronames[n->tok];
break;
case (MAN_ROOT):