From 9ed9ed46df24d5852327064d04da685eccfa4126 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 6 Sep 2002 12:55:38 +0000 Subject: MDK::Common::System::update_gnomekderc: fix adding section when the file doesn't end with a cr --- MDK/Common/System.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'MDK/Common/System.pm') diff --git a/MDK/Common/System.pm b/MDK/Common/System.pm index f4c1491..dcf24a7 100644 --- a/MDK/Common/System.pm +++ b/MDK/Common/System.pm @@ -358,7 +358,8 @@ sub update_gnomekderc { #- if category has not been found above. if (%subst) { - $s .= "[$category]\n"; + chomp $s; + $s .= "\n[$category]\n"; $s .= "$_->[0]=$_->[1]\n" foreach values %subst; } -- cgit v1.2.1