From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6105 invoked from network); 14 Dec 2002 22:26:37 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 14 Dec 2002 22:26:37 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18NKjJ-0006pI-00 for listarch-gnats-devel@sources.redhat.com; Sat, 14 Dec 2002 17:25:53 -0500 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18NKj5-0006pC-00 for help-gnats@gnu.org; Sat, 14 Dec 2002 17:25:39 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18NKj4-0006p1-00 for help-gnats@gnu.org; Sat, 14 Dec 2002 17:25:39 -0500 Received: from cluster2.netman.dk ([193.88.72.48]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18NKj3-0006os-00 for help-gnats@gnu.org; Sat, 14 Dec 2002 17:25:37 -0500 Received: (from lh@localhost) by cluster2.netman.dk (8.11.4/8.11.4) id gBEMPYo1569115 for help-gnats@gnu.org; Sat, 14 Dec 2002 23:25:34 +0100 (MET) Date: Tue, 17 Dec 2002 07:14:00 -0000 From: Lars Henriksen To: help-gnats@gnu.org Message-ID: <20021214222534.GC1554510@cluster2.netman.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: Yet another extra gnatsweb newline character X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General discussion about GNU GNATS List-Help: List-Post: List-Subscribe: , List-Archive: Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2002-q4/txt/msg00092.txt.bz2 It has annoyed me for a long time that an extra newline appeared after each "-Changed-Why" entry in the Audit-Trail. Now I've found the culprit in unparsepr(); gnatsweb treats the change reason as a multiline string and has already made certain that a newline is present. Lars Henriksen Index: gnatsweb.pl =================================================================== RCS file: /cvsroot/gnatsweb/gnatsweb/gnatsweb.pl,v retrieving revision 1.119 diff -u -r1.119 gnatsweb.pl --- gnatsweb.pl 25 Nov 2002 22:31:13 -0000 1.119 +++ gnatsweb.pl 14 Dec 2002 22:17:09 -0000 @@ -3591,7 +3591,7 @@ $tmp = $fields{$_."-Changed-Why"}; $tmp =~ s/^[.]/../gm if ($purpose ne 'test'); - $text .= sprintf(">$_-Changed-Why:\n%s\n", $tmp); + $text .= sprintf(">$_-Changed-Why:\n%s", $tmp); } } return $text; _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats