diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-03-02 01:00:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-03-02 01:00:40 +0000 |
commit | c2106c30fc02017f424d0af2aaea8733129851a9 (patch) | |
tree | ad908eda7569c61185a55eb7818873ceb0c17513 /usr.bin/mandoc/man_html.c | |
parent | 038ab018e83805ffd7295eb1d96d2eba5f39b351 (diff) |
Accept the non-standard macros .Sp (similar to .sp)
and .Vb/.Ve (similar to .nf/.fi) in man(7) mode.
These are not intended to be used manually, but they allow us to
properly render man(7) code autogenerated by pod2man(1),
making Perl and OpenSSL happy in our tree.
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r-- | usr.bin/mandoc/man_html.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c index 0a4050f79a4..ec076849380 100644 --- a/usr.bin/mandoc/man_html.c +++ b/usr.bin/mandoc/man_html.c @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.5 2010/02/18 02:11:26 schwarze Exp $ */ +/* $Id: man_html.c,v 1.6 2010/03/02 01:00:39 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -99,6 +99,9 @@ static const struct htmlman mans[MAN_MAX] = { { man_ign_pre, NULL }, /* DT */ { man_ign_pre, NULL }, /* UC */ { man_ign_pre, NULL }, /* PD */ + { man_br_pre, NULL }, /* Sp */ + { NULL, NULL }, /* Vb */ + { NULL, NULL }, /* Vi */ }; @@ -331,7 +334,7 @@ man_br_pre(MAN_ARGS) SCALE_VS_INIT(&su, 1); - if (MAN_sp == n->tok && n->child) + if ((MAN_sp == n->tok || MAN_Sp == n->tok) && n->child) a2roffsu(n->child->string, &su, SCALE_VS); else if (MAN_br == n->tok) su.scale = 0; |