make man command jump to correct place for busybox commands
Posted: Wed 24 Jan 2007, 11:11
At the moment when you enter the command "man xxx" for a busybox command it always takes you to the top of the busybox page and then you have to scroll down to find your command.
busybox.htm already has anchors inserted for each command of the form "item_command".
All you have to do is edit /usr/bin/man and change line 46 (as of 2.12) to
Hey presto no more scrolling needed.
BTW busybox.htm is not valid XHTML strict or even transitional. In fact it is not even valid XML. I presume the file is exactly what is supplied by the project.
busybox.htm already has anchors inserted for each command of the form "item_command".
All you have to do is edit /usr/bin/man and change line 46 (as of 2.12) to
Code: Select all
exec dillo file://usr/share/doc/busybox.htm#item_${1}
BTW busybox.htm is not valid XHTML strict or even transitional. In fact it is not even valid XML. I presume the file is exactly what is supplied by the project.