diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-07-08 13:56:28 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-07-08 13:56:28 +0000 |
commit | 37637f0c9a055baea192ecc1e13795605744ed96 (patch) | |
tree | b90db7be8f47ab8869fef438994cebae0bb366dc /usr.bin/mandoc | |
parent | 7d880d1a774200812c91dcc77ebf9d12119bc924 (diff) |
implement -Tman .Va
and fix -Tman .Vt for the non-SYNOPSIS case
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 6 |
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; |