From e93410db0c1326ac5895ba2105904698c7ee163e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 6 Sep 2002 13:52:34 +0000 Subject: MDK::Common::System::update_gnomekderc: fix adding lines to the last section when it doesn't end with a cr --- MDK/Common/System.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'MDK/Common/System.pm') diff --git a/MDK/Common/System.pm b/MDK/Common/System.pm index dcf24a7..c41485b 100644 --- a/MDK/Common/System.pm +++ b/MDK/Common/System.pm @@ -345,6 +345,7 @@ sub update_gnomekderc { foreach (MDK::Common::File::cat_($file), "[NOCATEGORY]\n") { if (my $i = /^\s*\[$category\]/i ... /^\[/) { if ($i =~ /E/) { #- for last line of category + chomp $s; $s .= "\n"; $s .= "$_->[0]=$_->[1]\n" foreach values %subst; %subst = (); } elsif (/^\s*(\w*?)=/) { -- cgit v1.2.1