bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gozilla +line result misses L in #


From: Paulius Bulotas
Subject: gozilla +line result misses L in #
Date: Sun, 6 Nov 2005 11:36:09 +0000

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 {
                /*




reply via email to

[Prev in Thread] Current Thread [Next in Thread]