summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-28 14:52:46 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-28 14:52:46 +0200
commit2acf6f49808a6fd7cb77f14f8f55f3090e9bc818 (patch)
treeffc42f4cb912778993312e4e538510f400d32330
parent2cafb93508902d6b9c2884d7bbe08f16cf67a5ca (diff)
fix another 'negative repeat count' warning
-rwxr-xr-xbin/db-wagenreihung5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/db-wagenreihung b/bin/db-wagenreihung
index 82e6ecc..71e42f8 100755
--- a/bin/db-wagenreihung
+++ b/bin/db-wagenreihung
@@ -99,9 +99,8 @@ for my $section ( $wr->sections ) {
}
printf( "ā–%s%s%sā–•",
- ' ' x $spacing_left,
- $section->name,
- ' ' x $spacing_right );
+ ( $spacing_left >= 0 ) ? ' ' x $spacing_left : q{},
+ $section->name, ( $spacing_right >= 0 ) ? ' ' x $spacing_right : q{} );
}
print "\n";