From dc212c8a063f9c9204d317d9764043bf1195adb0 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 24 Mar 2014 22:54:13 +0000 Subject: [PATCH] some line fixes branch one --- inxi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 3188833..90e0b53 100755 --- a/inxi +++ b/inxi @@ -3,7 +3,7 @@ #### Script Name: inxi #### Version: 2.1.8 #### Date: 2014-03-24 -#### Patch Number: 02-b1 +#### Patch Number: 03-b2 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -9629,16 +9629,18 @@ print_graphics_data() part_1_data="${C1}Card$SEP3${C2} Failed to Detect Video Card! " fi graphics_data="$part_1_data$part_2_data" - # remove all white spaces from line - if [[ -n ${graphics_data%% } ]];then + # + if [[ -n ${graphics_data% } ]];then if [[ $( calculate_line_length "$graphics_data" ) -gt $COLS_INNER ]];then graphics_data=$( create_print_line "$line_starter" "$part_1_data" ) print_screen_output "$graphics_data" part_1_data='' line_starter=' ' + echo 1 fi graphics_data=$( create_print_line "$line_starter" "$part_1_data$part_2_data" ) print_screen_output "$graphics_data" + echo 2 fi line_starter=' ' graphics_data='' @@ -9652,11 +9654,13 @@ print_graphics_data() print_screen_output "$graphics_data" line_starter=' ' graphics_data=$part_2_data + echo 3 fi if [[ -n ${graphics_data%% } ]];then graphics_data=$( create_print_line "$line_starter" "$graphics_data${CN}" ) print_screen_output "$graphics_data" line_starter=' ' + echo 4 fi # if [[ -z $glx_renderer || -z $glx_version ]];then # b_is_mesa='true'