From 2dc142d3f08015412f2e5777223ea67aecf2c17c Mon Sep 17 00:00:00 2001 From: freesource Date: Mon, 20 Aug 2001 18:04:10 +0000 Subject: [PATCH] This adds a test for unnecessary \s+$ for pulldown menu for uml options. --- gbootroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gbootroot b/gbootroot index c083212..844edf9 100755 --- a/gbootroot +++ b/gbootroot @@ -1134,7 +1134,8 @@ sub uml_box { $eab2->entry->signal_connect("changed", sub { $entry_advanced[9] = $eab2->entry->get_text(); open(OPTIONS,">$home_uml_kernel/.options"); - $entry_advanced[9] =~ s/\n/ /g; + $entry_advanced[9] =~ s/\n//g; + $entry_advanced[9] =~ s/\s+$//g; print OPTIONS "$entry_advanced[9]\n"; foreach (@initial_options) { if ($_ ne "$entry_advanced[9]") { @@ -1148,6 +1149,7 @@ sub uml_box { "" ); $eab2->show(); + #_______________________________________ # Root Filesystem defaults to generated one if found. label_advanced("Root_Fs:",0,1,2,3,$table_uml);