diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2005-10-19 14:29:19 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2005-10-19 14:29:19 +0000 |
commit | 0df118929382ba0bb41fde0add0fa8fdd9e3ea6f (patch) | |
tree | 8bc4df4764b1172b7f5ce58ef87efa4a2ae2a4e2 | |
parent | Update for 1.0_rc1 release. (diff) | |
download | eselect-0df118929382ba0bb41fde0add0fa8fdd9e3ea6f.tar.gz eselect-0df118929382ba0bb41fde0add0fa8fdd9e3ea6f.tar.bz2 eselect-0df118929382ba0bb41fde0add0fa8fdd9e3ea6f.zip |
Use ${#indent} instead of a literal '28'.
svn path=/trunk/; revision=236
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | libs/output.bash.in | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -2,6 +2,8 @@ ChangeLog for eselect 2005-10-19 Aaron Walker <ka0ttic@gentoo.org> + * libs/output.bash.in: Use ${#indent} instead of a literal '28'. + * Tagged 1.0_rc1 release. * libs/output.bash.in: Modified write_kv_list_entry to properly wrap lines that are longer than the current terminal width. diff --git a/libs/output.bash.in b/libs/output.bash.in index a752684..5775c24 100644 --- a/libs/output.bash.in +++ b/libs/output.bash.in @@ -100,14 +100,14 @@ write_kv_list_entry() { n=$(( ${n} + ${#text} + 1 )) else echo -n -e "\n${indent}${cwords[i]} " - n=$(( 28 + ${#text} + 1 )) + n=$(( ${#indent} + ${#text} + 1 )) fi i=$(( ${i} + 1 )) done - echo -e "${COLOUR_NORMAL}" else - echo -e "${cwords}${COLOUR_NORMAL}" + echo -n -e "${cwords}" fi + echo -e "${COLOUR_NORMAL}" } # write_numbered_list_entry PUBLIC |