Fix parsing

This commit is contained in:
Marco Pesenti Gritti 2007-07-09 19:37:30 +02:00
parent 764cd49bfb
commit f65c507e10

View File

@ -83,8 +83,8 @@ def cmd_build_snapshot():
sugar_news += '%s - %s - %s\n\n' % (name, version, alphatag) sugar_news += '%s - %s - %s\n\n' % (name, version, alphatag)
f = open('NEWS', 'r') f = open('NEWS', 'r')
for line in f.readline(): for line in f.readlines():
if len(line) > 0: if len(line.strip()) > 0:
sugar_news += line sugar_news += line
else: else:
break break