diff options
-rw-r--r-- | html.c | 1 | ||||
-rw-r--r-- | mdoc_html.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -595,7 +595,6 @@ bufcat(struct html *h, const char *p) h->buflen = strlcat(h->buf, p, BUFSIZ); assert(h->buflen < BUFSIZ); - h->buflen--; } void diff --git a/mdoc_html.c b/mdoc_html.c index d7906a6c..bc9c52d0 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -610,6 +610,7 @@ mdoc_sh_pre(MDOC_ARGS) return(1); bufinit(h); + bufcat(h, "x"); for (n = n->child; n; n = n->next) { bufcat_id(h, n->string); if (n->next) @@ -636,6 +637,7 @@ mdoc_ss_pre(MDOC_ARGS) return(1); bufinit(h); + bufcat(h, "x"); for (n = n->child; n; n = n->next) { bufcat_id(h, n->string); if (n->next) |