diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2015-09-24 17:17:38 +0200 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-09-24 08:45:25 -0700 |
commit | 720ba29ae46cdf71a2560c19cf3d781b371a6f0a (patch) | |
tree | a60c6e3e64b3f257b88a77fd7a6b6e927cc5c3f7 /build-aux/gitlog-to-changelog | |
parent | a406de9ca244049b57252b7e22b4b8cdf8fe0609 (diff) | |
download | gnulib-720ba29ae46cdf71a2560c19cf3d781b371a6f0a.tar.gz |
gitlog-to-changelog: trim only trailing whitespaces
This is fix for --format regression introduced by commit
2b93079a5d1baa4d; it caused that --format='%s%n%n%b%n' (see the
doubled %n string) had no effect anymore. This format
specification has been used e.g. by GNU paxuitils (commit
edfd8bcc3).
* build-aux/gitlog-to-changelog (main): Stop squashing multiple
newlines in commmit messages.
Diffstat (limited to 'build-aux/gitlog-to-changelog')
-rwxr-xr-x | build-aux/gitlog-to-changelog | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index 0cab1bf17c..a0e0a05df8 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -333,7 +333,7 @@ sub git_dir_option($) $rest =~ s/^\s*\(cherry picked from commit [\da-f]+\)\n//m; } - my @line = split /\s*\n/, $rest; + my @line = split /[ \t]*\n/, $rest; my $author_line = shift @line; defined $author_line or die "$ME:$.: unexpected EOF\n"; |