summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>2023-04-04 11:54:38 +0200
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>2023-06-01 07:53:17 +0000
commit10ddfaa544ac730e4d6e575a91f041587fd644d5 (patch)
tree10caa1c092967aa9bf35b6f032b065e89ef4a4a0
parentebf74a2581572af6c719368e60532a98807f3108 (diff)
gpush/gpick: fix width of flowed text in reports
we didn't set the width for Text::Wrap, so it defaulted to 72, while the other parts are targeting 80 columns. call a function that already does the right thing instead of invoking wrap() directly. Change-Id: If7a0c2e0439f7136065092600a755a884035b822 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--bin/git_gpush.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/git_gpush.pm b/bin/git_gpush.pm
index a1f12da..2eb2118 100644
--- a/bin/git_gpush.pm
+++ b/bin/git_gpush.pm
@@ -1035,7 +1035,7 @@ sub format_reports($)
foreach my $report (@$reports) {
my $type = $$report{type} // "";
if ($type eq "flowed") {
- $output .= wrap("", "", $_)."\n" foreach (@{$$report{texts}});
+ $output .= _wrap_narrow($_)."\n" foreach (@{$$report{texts}});
} elsif ($type eq "fixed") {
$output .= join("", @{$$report{texts}});
} elsif ($type eq "change") {