Date: Fri, 01 Sep 2000 21:04:20 +0000 From: Tony Finch <dot@dotat.at> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/20989: http://www.freebsd.org/cgi/cvsweb.cgi annotate omits newlines Message-ID: <E13Uxz2-0000rf-00@hand.dotat.at>
next in thread | raw e-mail | index | archive | help
>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 <dot@dotat.at> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E13Uxz2-0000rf-00>