From 81f02edede4ac7993865194b87fdea99c24b1215 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 27 Jul 2024 12:46:10 -0600 Subject: [PATCH] regen_lib.pl: Dont repeat constant There is a variable designed to be used for this purpose, so do so. --- regen/regen_lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regen/regen_lib.pl b/regen/regen_lib.pl index a733dbdb35b5..a14ec4e01f56 100644 --- a/regen/regen_lib.pl +++ b/regen/regen_lib.pl @@ -282,7 +282,7 @@ sub columnarize_list { # can accommodate all the data. This algorithm doesn't require the # resulting columns to all have the same width. This can allow for # as tight of packing as the data will possibly allow. - for ($columns = 7; $columns >= 1; $columns--) { + for ($columns = $max_columns; $columns >= 1; $columns--) { # For this many columns, we will need this many rows (final row might # not be completely filled)