[rt-devel] Rt-commit-handler removing to many newlines?
Phil Homewood
pdh at bestpractical.com
Wed Feb 26 01:54:11 EST 2003
Chad W Hinton wrote:
> I am testing the rt-addon: rt-commit-hander and it seems to remove all
> carriage returns from the commit log message when it incorporates the text
> into a specified rt ticket.
I've noticed this before, too. Not currently using the rt-commit-handler,
I don't have an easy way to test this, but it looks like it should work.
Good luck. :-)
--
»|« http://www.bestpractical.com/rt -- Trouble Ticketing. Free.
-------------- next part --------------
Index: rt-commit-handler
===================================================================
RCS file: /raid/tracking-cvs/rt/bin/rt-commit-handler,v
retrieving revision 1.3
diff -u -r1.3 rt-commit-handler
--- rt-commit-handler 27 Feb 2002 02:49:47 -0000 1.3
+++ rt-commit-handler 26 Feb 2003 06:53:33 -0000
@@ -632,7 +632,7 @@
$message->build(
From => $CurrentUser->EmailAddress,
Subject => 'CVS Commit',
- Data => \@LogMessage
+ Data => join( "\n", @LogMessage )
);
# {{{ comment or correspond, as needed
More information about the Rt-devel
mailing list