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.
-/* $Id: html.c,v 1.147 2011/05/24 21:40:14 kristaps Exp $ */
+/* $Id: html.c,v 1.148 2011/07/04 09:42:38 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
h->buflen = strlcat(h->buf, p, BUFSIZ);
assert(h->buflen < BUFSIZ);
- h->buflen--;
}
void
-/* $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>
*
return(1);
bufinit(h);
+ bufcat(h, "x");
for (n = n->child; n; n = n->next) {
bufcat_id(h, n->string);
if (n->next)
return(1);
bufinit(h);
+ bufcat(h, "x");
for (n = n->child; n; n = n->next) {
bufcat_id(h, n->string);
if (n->next)