From owner-freebsd-bugs Fri Sep 1 14:10: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id ADBE537B43C for ; Fri, 1 Sep 2000 14:10:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA12341; Fri, 1 Sep 2000 14:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from hand.dotat.at (dhcp.207.44.198.57.salon.com [207.44.198.57]) by hub.freebsd.org (Postfix) with ESMTP id DD9D437B423 for ; Fri, 1 Sep 2000 14:04:28 -0700 (PDT) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13Uxz2-0000rf-00 for FreeBSD-gnats-submit@freebsd.org; Fri, 01 Sep 2000 21:04:20 +0000 Message-Id: Date: Fri, 01 Sep 2000 21:04:20 +0000 From: Tony Finch Reply-To: Tony Finch To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/20989: http://www.freebsd.org/cgi/cvsweb.cgi annotate omits newlines Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20989 >Category: misc >Synopsis: http://www.freebsd.org/cgi/cvsweb.cgi annotate omits newlines >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 01 14:10:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Tony Finch >Release: FreeBSD 4.1-STABLE-20000831 i386 >Organization: dotat >Environment: http://www.freebsd.org/ >Description: When viewing a file with cvsweb in annotate mode, newlines are missed out after empty lines and lines with trailing whitespace causing lines to be concatenated. >How-To-Repeat: http://www.freebsd.org/cgi/cvsweb.cgi/www/en/cgi/cvsweb.cgi?annotate=1.48 The end of the initial copyright comment is displayed as 1.46 knu 48: ### 49: 50: use strict; 1.21 wosch 51:1.46 knu 52: use vars qw ( 53: $config $allow_version_select $verbose when it should be 1.46 knu 48: ### 49: 50: use strict; 1.21 wosch 51: 1.46 knu 52: use vars qw ( 53: $config $allow_version_select $verbose and there are loads of similar problems in the rest of the file. >Fix: Index: cvsweb.cgi =================================================================== RCS file: /FreeBSD/cvs/www/en/cgi/cvsweb.cgi,v retrieving revision 1.48 diff -u -r1.48 cvsweb.cgi --- cvsweb.cgi 2000/08/25 09:21:00 1.48 +++ cvsweb.cgi 2000/09/01 20:55:30 @@ -919,7 +919,7 @@ local $_ = $_[0]; # Cut trailing spaces - s/\s+\n$//; + s/\s+$//; # Expand tabs s/\t+/' ' x (length($&) * $tabstop - length($`) % $tabstop)/e >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message