diff options
author | David Robillard <d@drobilla.net> | 2016-09-05 22:12:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-05 22:12:13 -0400 |
commit | cc35f7cbd70677e13ef543f679722624c1085308 (patch) | |
tree | e815d01cf8b56677cd77c45c11e10d04e01abc04 | |
parent | 03fdaf7792d9530a789f341e03ff57c13779304f (diff) | |
download | autowaf-cc35f7cbd70677e13ef543f679722624c1085308.tar.gz autowaf-cc35f7cbd70677e13ef543f679722624c1085308.tar.bz2 autowaf-cc35f7cbd70677e13ef543f679722624c1085308.zip |
Fix post generation
-rw-r--r-- | autowaf.py | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -919,9 +919,12 @@ def write_posts(entries, meta, out_dir, status='stable'): if 'description' in entry: post.write(' ' + entry['description']) - post.write('\n\nChanges:\n\n') - for i in entry['items']: - post.write(' * %s\n' % i) + post.write('\n') + if (len(entry['items']) > 0 and + not (len(entry['items']) == 1 and entry['items'][0] == 'Initial release')): + post.write('\nChanges:\n\n') + for i in entry['items']: + post.write(' * %s\n' % i) post.close() @@ -932,10 +935,10 @@ def get_blurb(in_file): f.readline() # Title underline f.readline() # Blank out = '' - line = '' + line = f.readline() while len(line) > 0 and line != '\n': - line = f.readline() out += line.replace('\n', ' ') + line = f.readline() return out.strip() def get_news(in_file, entry_props={}): |