[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gozilla +line result misses L in #
From: |
Shigio Yamaguchi |
Subject: |
Re: gozilla +line result misses L in # |
Date: |
Tue, 08 Nov 2005 00:30:28 +0900 |
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 {
> /*
I have fixed the bug in CVS repository.
Thank you for your bug report and the patch!
--
Shigio YAMAGUCHI <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3