From 1ae7a908eab97bd3a8475feec20ce490c725a1b7 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 9 Jul 2007 19:55:06 +0200 Subject: [PATCH] Fix parsing bug --- sugar/activity/bundlebuilder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugar/activity/bundlebuilder.py b/sugar/activity/bundlebuilder.py index a82d744b..11fae53e 100644 --- a/sugar/activity/bundlebuilder.py +++ b/sugar/activity/bundlebuilder.py @@ -270,8 +270,8 @@ def cmd_release(bundle_name, manifest): sugar_news += '%s - %d\n\n' % (bundle_name, version) f = open(news_path,'r') - for line in f.readline(): - if len(line) > 0: + for line in f.readlines(): + if len(line.strip()) > 0: sugar_news += line else: break