public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* Yet another extra gnatsweb newline character
@ 2002-12-17  7:14 Lars Henriksen
  0 siblings, 0 replies; only message in thread
From: Lars Henriksen @ 2002-12-17  7:14 UTC (permalink / raw)
  To: help-gnats

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-14 22:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-17  7:14 Yet another extra gnatsweb newline character Lars Henriksen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).