diff --git a/workflow/qhtcp-workflow b/workflow/qhtcp-workflow index 47b5490e..eea6e3ac 100755 --- a/workflow/qhtcp-workflow +++ b/workflow/qhtcp-workflow @@ -411,15 +411,38 @@ interactive_header() { # echo "" echo "Available Submodules:" + + # Determine if we need two columns if [ ${#ALL_SUBMODULES[@]} -gt 8 ]; then # Calculate the number of elements in each column num_columns=$(( (${#ALL_SUBMODULES[@]} + 1) / 2 )) + + # Determine the maximum width of the first column + max_width=0 + for ((i=0; i