refactor(docs): Add pkg list trimming (#1)
This commit is contained in:
parent
47885efbab
commit
2fbbf4da19
@ -223,6 +223,10 @@ function trim_pkg_list_oneline () {
|
||||
break
|
||||
fi
|
||||
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
|
||||
trim_single_remaining_package_name
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user