tweaked A output a bit to make it cleaner on shorter lines

This commit is contained in:
inxi-svn 2012-10-19 18:51:02 +00:00
parent 6a4a15e6ee
commit 2ab831b0db

11
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### version: 1.8.19
#### Date: October 19 2012
#### Patch Number: 06
#### Patch Number: 07
########################################################################
#### SPECIAL THANKS
########################################################################
@ -6903,7 +6903,13 @@ print_audio_data()
fi
fi
if [[ -n $audio_data ]];then
if [[ $( calculate_line_length "$card_string${audio_data}$alsa_data" ) -lt $LINE_MAX ]];then
if [[ $( calculate_line_length "$card_string$audio_data" ) -lt $LINE_MAX ]];then
print_data=$( create_print_line "$line_starter" "$card_string$audio_data" )
print_screen_output "$print_data"
# print the line
else
# keep the driver on the same line no matter what, looks weird alone on its own line
if [[ $B_EXTRA_DATA != 'true' ]];then
print_data=$( create_print_line "$line_starter" "$card_string$audio_data" )
print_screen_output "$print_data"
else
@ -6913,6 +6919,7 @@ print_audio_data()
print_data=$( create_print_line "$line_starter" "$audio_data" )
print_screen_output "$print_data"
fi
fi
line_starter=' '
fi
done