diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-28 14:52:46 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-28 14:52:46 +0200 |
commit | 2acf6f49808a6fd7cb77f14f8f55f3090e9bc818 (patch) | |
tree | ffc42f4cb912778993312e4e538510f400d32330 | |
parent | 2cafb93508902d6b9c2884d7bbe08f16cf67a5ca (diff) |
fix another 'negative repeat count' warning
-rwxr-xr-x | bin/db-wagenreihung | 5 |
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"; |