summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-01-04 12:45:29 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-01-04 12:45:29 +0000
commitaadb0f1f34c6e1c8b974e8b12e89f53f6edc2d70 (patch)
tree1dd3cd528a37fd9a4be2c03f95da2fee8bfef94c /mdoc_html.c
parent56a48084a788f82cc25b032b989926704f806fee (diff)
downloadmandoc-aadb0f1f34c6e1c8b974e8b12e89f53f6edc2d70.tar.gz
Generate simpler in-page links: just replace spaces with underscores.
Patch from bentley@.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 28f33083..e67817fa 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -542,7 +542,6 @@ mdoc_sh_pre(MDOC_ARGS)
}
bufinit(h);
- bufcat(h, "x");
for (n = n->child; n != NULL && n->type == ROFFT_TEXT; ) {
bufcat_id(h, n->string);
@@ -572,7 +571,6 @@ mdoc_ss_pre(MDOC_ARGS)
return 1;
bufinit(h);
- bufcat(h, "x");
for (n = n->child; n != NULL && n->type == ROFFT_TEXT; ) {
bufcat_id(h, n->string);
@@ -1063,7 +1061,7 @@ mdoc_sx_pre(MDOC_ARGS)
struct htmlpair tag[2];
bufinit(h);
- bufcat(h, "#x");
+ bufcat(h, "#");
for (n = n->child; n; ) {
bufcat_id(h, n->string);