summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-03-02 01:00:39 +0000
committerschwarze <schwarze@openbsd.org>2010-03-02 01:00:39 +0000
commit172522eb5a2863ae0f57d6da02c53b6098aae892 (patch)
tree2677be68f7a571687dbc09bcd98b259d28538057 /usr.bin/mandoc/man_html.c
parentProper inter-sentence spacing for mdoc(7). (diff)
downloadwireguard-openbsd-172522eb5a2863ae0f57d6da02c53b6098aae892.tar.xz
wireguard-openbsd-172522eb5a2863ae0f57d6da02c53b6098aae892.zip
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.c7
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;