summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_man.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2012-07-08 13:56:27 +0000
committerschwarze <schwarze@openbsd.org>2012-07-08 13:56:27 +0000
commita4247c97233ce23659d609863f67bef99c91bde6 (patch)
treed29a8745244079be3d14076b6a365828ee5ebf3f /usr.bin/mandoc/mdoc_man.c
parentauth_bsd() is static (diff)
downloadwireguard-openbsd-a4247c97233ce23659d609863f67bef99c91bde6.tar.xz
wireguard-openbsd-a4247c97233ce23659d609863f67bef99c91bde6.zip
implement -Tman .Va
and fix -Tman .Vt for the non-SYNOPSIS case
Diffstat (limited to 'usr.bin/mandoc/mdoc_man.c')
-rw-r--r--usr.bin/mandoc/mdoc_man.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c
index 156e0712f93..e245eb7717a 100644
--- a/usr.bin/mandoc/mdoc_man.c
+++ b/usr.bin/mandoc/mdoc_man.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_man.c,v 1.16 2012/07/08 11:08:06 schwarze Exp $ */
+/* $Id: mdoc_man.c,v 1.17 2012/07/08 13:56:27 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -130,7 +130,7 @@ static const struct manact manacts[MDOC_MAX + 1] = {
"variable \\fIerrno\\fP is set to indicate the error."
}, /* Rv */
{ NULL, NULL, NULL, NULL, NULL }, /* St */
- { NULL, NULL, NULL, NULL, NULL }, /* _Va */
+ { NULL, pre_enc, post_enc, "\\fI", "\\fP" }, /* Va */
{ NULL, pre_vt, post_vt, NULL, NULL }, /* Vt */
{ NULL, pre_xr, NULL, NULL, NULL }, /* Xr */
{ NULL, NULL, post_percent, NULL, NULL }, /* _%A */
@@ -871,7 +871,7 @@ static void
post_vt(DECL_ARGS)
{
- if (MDOC_BODY != n->type)
+ if (MDOC_SYNPRETTY & n->flags && MDOC_BODY != n->type)
return;
mm->need_space = 0;