yawn: forecast string fix

This commit is contained in:
luke bonham 2013-09-13 20:08:51 +02:00
parent 8af4a03c75
commit b87b05203e
1 changed files with 3 additions and 1 deletions

View File

@ -131,9 +131,11 @@ local function fetch_weather()
yawn.icon:set_image(sky)
widget = yawn.widget
forecast = weather_data:match(": %S+.-,"):gsub(": ", ""):gsub(",", "\n")
forecast = weather_data:match(": %S.-,"):gsub(": ", ""):gsub(",", "")
units = units:gsub(" ", "")
naughty.notify({text=forecast, timeout=10})
naughty.notify({text=units, timeout=10})
settings()
end