Skip to content

Commit

Permalink
Merge branch 'pb/maint-gitweb-blob-lineno' into maint
Browse files Browse the repository at this point in the history
* pb/maint-gitweb-blob-lineno:
  gitweb: Fix blob linenr links in pathinfo mode
  • Loading branch information
Junio C Hamano committed Nov 16, 2009
2 parents 958742b + b9759f0 commit 3ad1243
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -5064,7 +5064,8 @@ sub git_blob {
chomp $line;
$nr++;
$line = untabify($line);
printf "<div class=\"pre\"><a id=\"l%i\" href=\"#l%i\" class=\"linenr\">%4i</a> %s</div>\n",
printf "<div class=\"pre\"><a id=\"l%i\" href=\"" . href(-replay => 1)
. "#l%i\" class=\"linenr\">%4i</a> %s</div>\n",
$nr, $nr, $nr, esc_html($line, -nbsp=>1);
}
}
Expand Down

0 comments on commit 3ad1243

Please sign in to comment.