From 6fcb5ea18d95e1cc79dd37b4e2860f4e8c898346 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 17 May 2011 11:38:18 +0000 Subject: Clean-up fallout: differentiate ID's and HREF's (where to put the `#'). Make buffmt functions internally bufinit(), too. --- mdoc_html.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 1e766b04..57ebc348 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.168 2011/05/17 11:34:31 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.169 2011/05/17 11:38:18 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * @@ -1171,6 +1171,7 @@ mdoc_sx_pre(MDOC_ARGS) struct htmlpair tag[2]; bufinit(h); + bufcat(h, "#x"); for (n = n->child; n; n = n->next) { bufcat_id(h, n->string); if (n->next) -- cgit v1.2.3