summaryrefslogtreecommitdiffstats
path: root/libexec/filter-github-emails
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/filter-github-emails')
-rwxr-xr-xlibexec/filter-github-emails3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/filter-github-emails b/libexec/filter-github-emails
index 9b86f7e..6f1f3a6 100755
--- a/libexec/filter-github-emails
+++ b/libexec/filter-github-emails
@@ -119,8 +119,9 @@ sub bye {
119# 119#
120 120
121sub rewrap { 121sub rewrap {
122 my $wrap = sub { /^(?: {4}|\t)/ ? $_ : wrap('', '', $_) };
122 my @lines = split(/\n/, shift); 123 my @lines = split(/\n/, shift);
123 my @wrapped = map { wrap('', '', $_) } @lines; 124 my @wrapped = map { $wrap->($_) } @lines;
124 125
125 debug('Rewrapping text'); 126 debug('Rewrapping text');
126 return join("\n", @wrapped); 127 return join("\n", @wrapped);