From b83a9d881333255c1539b3f392dc344efa32d674 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 4 Jul 2011 09:42:38 +0000 Subject: The bufcat() function in -T[x]html was eating one byte off the end of its concatenated string. This for some reason hasn't been found before now... ? Anyway, fixed, and make the IDs created again be correctly prefixed by a letter as per the HTML spec. --- mdoc_html.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mdoc_html.c') 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) -- cgit