summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-04-04 00:00:12 +0000
committerschwarze <schwarze@openbsd.org>2010-04-04 00:00:12 +0000
commitb6ef0f54872641c0a39102aa4381226c77795928 (patch)
treefcf3d059eed8531c0a0a489c027015efbeaec5b0 /usr.bin/mandoc/mdoc_html.c
parentinstead of returning EINVAL if an unsupported sample rate was (diff)
downloadwireguard-openbsd-b6ef0f54872641c0a39102aa4381226c77795928.tar.xz
wireguard-openbsd-b6ef0f54872641c0a39102aa4381226c77795928.zip
Better write 'href="mailto:' instead of 'style="mailto:'.
Diff from Tim van der Molen <tbvdm at xs4all dot nl>, thanks! ok kristaps@
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r--usr.bin/mandoc/mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c
index fad95b2d99c..f41d6acf420 100644
--- a/usr.bin/mandoc/mdoc_html.c
+++ b/usr.bin/mandoc/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.9 2010/04/03 17:06:19 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.10 2010/04/04 00:00:12 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1803,7 +1803,7 @@ mdoc_mt_pre(MDOC_ARGS)
bufinit(h);
bufcat(h, "mailto:");
bufcat(h, nn->string);
- PAIR_STYLE_INIT(&tag[1], h);
+ PAIR_HREF_INIT(&tag[1], h->buf);
t = print_otag(h, TAG_A, 2, tag);
print_text(h, nn->string);
print_tagq(h, t);