SF.net SVN: geany:[4084] trunk/scripts/changelist.pl

ntrel at users.sourceforge.net ntrel at xxxxx
Fri Aug 14 16:21:29 UTC 2009


Revision: 4084
          http://geany.svn.sourceforge.net/geany/?rev=4084&view=rev
Author:   ntrel
Date:     2009-08-14 16:21:29 +0000 (Fri, 14 Aug 2009)

Log Message:
-----------
Strip trailing space first.
Only strip <email> from date line.

Modified Paths:
--------------
    trunk/scripts/changelist.pl

Modified: trunk/scripts/changelist.pl
===================================================================
--- trunk/scripts/changelist.pl	2009-08-14 15:09:21 UTC (rev 4083)
+++ trunk/scripts/changelist.pl	2009-08-14 16:21:29 UTC (rev 4084)
@@ -80,6 +80,9 @@
 	foreach my $line (@lines){
 		my $flset = $fl;
 
+		# strip trailing space
+		$line =~ s/\s+$//g;
+
 		if (!$cm){
 			# check if in filelist
 			($line =~ m/ \* /) and $fl = 1;
@@ -108,8 +111,8 @@
 
 		# change file list start char to easily distinguish between file list and commit messages
 		$line =~ s/^ \* /@ /g;
-		# strip date line
-		$line =~ s/^([0-9-]+(\s+\w+)+).*/$1/g;
+		# strip <email> from date line
+		$line =~ s/^([0-9-]+.*?)\s+<.+>$/$1/g;
 		# remove indent
 		$line =~ s/^   //g;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list