summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_html.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2012-08-12 06:04:09 +0000
committermatthew <matthew@openbsd.org>2012-08-12 06:04:09 +0000
commitf5ff5c49305917b74ddf73d85d4bbeefb89f9d10 (patch)
treeb6e0e96f924b8605929a0a26f91afd4564b62577 /usr.bin/mandoc/mdoc_html.c
parentExplicitly state that only two unit specifiers are recognized instead of (diff)
downloadwireguard-openbsd-f5ff5c49305917b74ddf73d85d4bbeefb89f9d10.tar.xz
wireguard-openbsd-f5ff5c49305917b74ddf73d85d4bbeefb89f9d10.zip
.Sq should use curly right quotes in HTML output to match its curly
left quotes. Also, properly reinitialize the styles attribute string buffer for each column in a table so that the attributes don't accumulate. tweak and ok schwarze
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r--usr.bin/mandoc/mdoc_html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c
index bbca6591ab3..137eacdf2a0 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.65 2011/11/03 20:32:33 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.66 2012/08/12 06:04:09 matthew Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -977,8 +977,6 @@ mdoc_bl_pre(MDOC_ARGS)
struct roffsu su;
char buf[BUFSIZ];
- bufinit(h);
-
if (MDOC_BODY == n->type) {
if (LIST_column == n->norm->Bl.type)
print_otag(h, TAG_TBODY, 0, NULL);
@@ -997,6 +995,7 @@ mdoc_bl_pre(MDOC_ARGS)
*/
for (i = 0; i < (int)n->norm->Bl.ncols; i++) {
+ bufinit(h);
a2width(n->norm->Bl.cols[i], &su);
if (i < (int)n->norm->Bl.ncols - 1)
bufcat_su(h, "width", &su);
@@ -1010,6 +1009,7 @@ mdoc_bl_pre(MDOC_ARGS)
}
SCALE_VS_INIT(&su, 0);
+ bufinit(h);
bufcat_su(h, "margin-top", &su);
bufcat_su(h, "margin-bottom", &su);
PAIR_STYLE_INIT(&tag[0], h);
@@ -2269,7 +2269,7 @@ mdoc_quote_post(MDOC_ARGS)
case (MDOC_So):
/* FALLTHROUGH */
case (MDOC_Sq):
- print_text(h, "\\(aq");
+ print_text(h, "\\(cq");
break;
default:
abort();