aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-08-12 10:04:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-08-12 10:04:09 +0000
commita1b6c48416a5a555c81985c1ceba7b0c00cae260 (patch)
tree8cd8adf1054a1a8f5bbd1dc2ab58bce4e15e9cf2 /mdoc_html.c
parent0f6951b8f792bf5ed65d563e619b73b4cb2ea0c6 (diff)
downloadmandoc-a1b6c48416a5a555c81985c1ceba7b0c00cae260.tar.gz
mandoc-a1b6c48416a5a555c81985c1ceba7b0c00cae260.tar.zst
mandoc-a1b6c48416a5a555c81985c1ceba7b0c00cae260.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. Patch from Matthew@ Dempsky, tweaked by me; OpenBSD rev. 1.66.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 60ea6dc7..42df3247 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.182 2011/11/03 20:37:00 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.183 2012/08/12 10:04:09 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -981,8 +981,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);
@@ -1001,6 +999,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);
@@ -1014,6 +1013,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);
@@ -2273,7 +2273,7 @@ mdoc_quote_post(MDOC_ARGS)
case (MDOC_So):
/* FALLTHROUGH */
case (MDOC_Sq):
- print_text(h, "\\(aq");
+ print_text(h, "\\(cq");
break;
default:
abort();