refactor(docs): Add pkg list trimming (#1)

This commit is contained in:
hygienic-books 2023-12-25 22:30:37 +01:00
parent 47885efbab
commit 2fbbf4da19

View File

@ -223,6 +223,10 @@ function trim_pkg_list_oneline () {
break break
fi fi
done done
# If pkg name is still too long trim it. If there's enough
# space for an ellipsis (...) we add that to indicate we've
# trimmed the name, otherwise we just take however many
# characters of the pkg name we can get.
if [[ "${#shorter_pkg_list}" -gt "${pkgs_list_max_length}" ]]; then if [[ "${#shorter_pkg_list}" -gt "${pkgs_list_max_length}" ]]; then
trim_single_remaining_package_name trim_single_remaining_package_name
fi fi