=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_html.c,v retrieving revision 1.65 retrieving revision 1.66 diff -u -r1.65 -r1.66 --- src/usr.bin/mandoc/mdoc_html.c 2011/11/03 20:32:33 1.65 +++ src/usr.bin/mandoc/mdoc_html.c 2012/08/12 06:04:09 1.66 @@ -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 * @@ -977,8 +977,6 @@ 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 @@ */ 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 @@ } 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 @@ case (MDOC_So): /* FALLTHROUGH */ case (MDOC_Sq): - print_text(h, "\\(aq"); + print_text(h, "\\(cq"); break; default: abort();