mirror of
https://github.com/octoleo/hosts.git
synced 2024-12-28 04:05:00 +00:00
Improve alignment.
This commit is contained in:
parent
051e8b3840
commit
4e9ad74697
14
hosts
14
hosts
@ -361,15 +361,15 @@ _print_entries() {
|
||||
|
||||
if [[ -n "${_parts[2]:-}" ]]
|
||||
then
|
||||
printf "%s%s %s\t%s\\n" \
|
||||
"${_parts[0]}" \
|
||||
"${_tabs}" \
|
||||
"${_parts[1]}" \
|
||||
printf "%s%s %s\t%s\\n" \
|
||||
"${_parts[0]}" \
|
||||
"${_tabs}" \
|
||||
"${_parts[1]}" \
|
||||
"$(printf "%s" "${_parts[*]:2}" | tr '\r\n' ' ')"
|
||||
else
|
||||
printf "%s%s %s\\n" \
|
||||
"${_parts[0]}" \
|
||||
"${_tabs}" \
|
||||
printf "%s%s %s\\n" \
|
||||
"${_parts[0]}" \
|
||||
"${_tabs}" \
|
||||
"${_parts[1]}"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user