Remove line numbers from selection
[gitweb] / gitweb.cgi
index 16e2e3c70c6df29963e55d4df61598b3f8a832c4..b74ebd505746d69eba6a811fc906f5a567b292da 100755 (executable)
@@ -6444,8 +6444,8 @@ sub git_search_files {
                        }
                        print "<div class=\"pre\">" .
                                $cgi->a({-href => $file_href.'#l'.$lno,
-                                       -class => "linenr"}, sprintf('%4i', $lno)) .
-                               ' ' .  $ltext . "</div>\n";
+                                       -class => "linenr"}, sprintf('%4i ', $lno)) .
+                               $ltext . "</div>\n";
                }
        }
        if ($lastfile) {
@@ -7198,7 +7198,7 @@ sub git_blob {
                        chomp $line;
                        $nr++;
                        $line = untabify($line);
-                       printf qq!<div class="pre"><a id="l%i" href="%s#l%i" class="linenr">%4i</a> %s</div>\n!,
+                       printf qq!<div class="pre"><a id="l%i" href="%s#l%i" class="linenr">%4i </a>%s</div>\n!,
                               $nr, esc_attr(href(-replay => 1)), $nr, $nr,
                               $highlight ? sanitize($line) : esc_html($line, -nbsp=>1);
                }