Hello,
started playing with global, used example from manual, and found a bug.
$ gozilla -p +105 sys/ufs/ffs/ffs_vfsops.c
file:///home/paulius/work/Paulius/OpenBSD/src/HTML/S/5931.html#105
this doesn't work as expected, because in generated html file line
numbers are made in Lnumber format, not just number. As link from
definitions in beginning of html points to
file:///home/paulius/work/Paulius/OpenBSD/src/HTML/S/5931.html#L105
this diff fixes this small problem for me ;)
--- gozilla/gozilla.c.orig Thu Sep 29 23:56:43 2005
+++ gozilla/gozilla.c Sun Nov 6 11:30:38 2005
@@ -423,7 +423,7 @@
#endif
strbuf_sprintf(URL, "file://%s", p);
if (linenumber)
- strbuf_sprintf(URL, "#%d", linenumber);
+ strbuf_sprintf(URL, "#L%d", linenumber);
strbuf_close(sb);
} else {
/*
_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global