diff options
author | 2011-07-04 09:42:38 +0000 | |
---|---|---|
committer | 2011-07-04 09:42:38 +0000 | |
commit | 7162995ad97cdf982db73d488641974e1894e2d9 (patch) | |
tree | 1f7af60e03715206b529a6faeca9aa9db56a7b53 /mdoc_html.c | |
parent | 66611c2a2aece81705e614fe7d87b9abe3495b7c (diff) | |
download | mandoc-7162995ad97cdf982db73d488641974e1894e2d9.tar.gz mandoc-7162995ad97cdf982db73d488641974e1894e2d9.tar.zst mandoc-7162995ad97cdf982db73d488641974e1894e2d9.zip |
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.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index ae79e2a6..33cebdac 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.171 2011/06/29 15:38:09 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.172 2011/07/04 09:42:38 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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) |