[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Konversation] bdccc56: Fix details for the last time I hope grrrr
From:       "İsmail" "Dönmez" <ismail () kde ! org>
Date:       2010-07-01 13:28:00
Message-ID: 20100701132800.22E41BB5735 () projects ! kde ! org
[Download RAW message or body]

commit bdccc5684e54bc1d6f061c3ae78195eadcccd8a5
Author: İsmail Dönmez <ismail@kde.org>
Date:   Tue Aug 17 07:16:34 2004 +0000

    Fix details for the last time I hope grrrr
    
    svn path=/trunk/kdeextragear-2/konversation/; revision=338505

diff --git a/scripts/weather b/scripts/weather
index c881e51..a76242f 100755
--- a/scripts/weather
+++ b/scripts/weather
@@ -26,6 +26,8 @@ foreach $station (@stations) {
   # Fix details
   
   $i = 0;
+  chomp $detail;
+  
   foreach $det (split(/\n/,$detail)) {
     chomp $det;
     if( $i==0 ) {
@@ -43,9 +45,9 @@ foreach $station (@stations) {
   chomp $temperature;
   chomp $pressure;
   chomp $wind;
-  
-  
-  if( $detail != /(\s)+/ ) {
+
+
+  if( $detail =~ /(\S)+/ ) {
   $MESSAGE = "Current Weather for %B$city%B : %B$details%B, Temperature: \
%B$temperature%B, Pressure: %B$pressure%B, Wind: %B$wind%B";  }
   else {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic