Skip to content

Commit 39e973c

Browse files
committed
indexer: word wrap the "nothing updated" text
It just looks better!
1 parent cf45624 commit 39e973c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/PAUSE/dist.pm

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -393,16 +393,20 @@ sub _update_mail_content_when_things_were_indexed {
393393
sub _update_mail_content_when_nothing_was_indexed {
394394
my ($self, $ctx, $m_ref, $status_ref) = @_;
395395

396+
my $tf = Text::Format->new(firstIndent=>0);
397+
396398
if ($self->version_from_meta_ok($ctx)) {
397-
push @$m_ref, qq{Nothing in this distro has been \n}
398-
. qq{indexed, because according to META.yml this\n}
399-
. qq{package does not provide any modules.\n\n};
399+
push @$m_ref, $tf->format(<<'EOF') . "\n";
400+
Nothing in this distro has been indexed, because according to META.yml this
401+
package does not provide any modules.
402+
EOF
400403

401404
$$status_ref = "Empty_provides";
402405
} else {
403-
push @$m_ref, qq{No or no indexable package statements could be found\n}
404-
. qq{in the distro (maybe a script or documentation\n}
405-
. qq{distribution or a developer release?)\n\n};
406+
push @$m_ref, $tf->format(<<'EOF') . "\n";
407+
No or no indexable package statements could be found in the distro (maybe a
408+
script or documentation distribution or a developer release?)
409+
EOF
406410

407411
$$status_ref = "Empty_no_pm";
408412
}

0 commit comments

Comments
 (0)