summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-17 11:38:18 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-17 11:38:18 +0000
commit6fcb5ea18d95e1cc79dd37b4e2860f4e8c898346 (patch)
tree001b9509866a90900caff140d31ce5554f3cfd79 /mdoc_html.c
parented7b34daec8f64113849ed8b3d816f617cdf3983 (diff)
downloadmandoc-6fcb5ea18d95e1cc79dd37b4e2860f4e8c898346.tar.gz
mandoc-6fcb5ea18d95e1cc79dd37b4e2860f4e8c898346.tar.zst
mandoc-6fcb5ea18d95e1cc79dd37b4e2860f4e8c898346.zip
Clean-up fallout: differentiate ID's and HREF's (where to put the `#').
Make buffmt functions internally bufinit(), too.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c3
1 files changed, 2 insertions, 1 deletions
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 <kristaps@bsd.lv>
*
@@ -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)