Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Man page chapters link to #end

1 view
Skip to first unread message

Ed Schouten

unread,
Aug 2, 2016, 2:05:49 AM8/2/16
to
Hi there,

I was just taking a look at a man page through the FreeBSD web site:

https://www.freebsd.org/cgi/man.cgi?query=cloudabi-run

What I noticed is that the chapters of the man page are all anchors.
From the HTML:

<a name="YAML_TAGS" href="#end"><b>YAML TAGS</b></a>

It's nice that they all have a name attribute. Question: would it make
sense to let the href point to the #name as well, instead of linking
them all to #end? That way you can click on a chapter name to obtain a
link that you can share with others.

Thanks,
--
Ed Schouten <e...@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717
_______________________________________________
freeb...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "freebsd-doc...@freebsd.org"

Ed Schouten

unread,
Aug 2, 2016, 2:10:05 AM8/2/16
to
2016-08-02 8:05 GMT+02:00 Ed Schouten <e...@nuxi.nl>:
> https://www.freebsd.org/cgi/man.cgi?query=cloudabi-run

Ah! Looks like this maps over to:

https://svnweb.freebsd.org/doc/head/en_US.ISO8859-1/htdocs/cgi/man.cgi?view=log

Would anyone mind if I committed this patch?

Index: man.cgi
===================================================================
--- man.cgi (revision 49205)
+++ man.cgi (working copy)
@@ -1439,7 +1439,7 @@
$i = $_;
$j = &encode_url($i);
$j =~ s/\+/_/g;
- $_ = qq{<a name="$j" href="#end"><b>$i</b></a>\n};
+ $_ = qq{<a name="$j" href="#$j"><b>$i</b></a>\n};
push( @sect, $i );
}
print;
0 new messages