From 8d2c02e7c3f5169735fc014277e49190b512cf52 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 20 Jun 2008 09:09:08 +0000 Subject: [PATCH] review changelog formatting & remove white lines --- module-tools.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/module-tools.py b/module-tools.py index 594f81ca..1a7ad8e2 100755 --- a/module-tools.py +++ b/module-tools.py @@ -380,11 +380,16 @@ that for other purposes than tagging"""%topdir def unignored_lines (self, logfile): result=[] exclude="Tagging module %s"%self.name + white_line_matcher = re.compile("\A\s*\Z") for logline in file(logfile).readlines(): if logline.strip() == Module.svn_magic_line: break - if logline.find(exclude) < 0: - result += [ logline ] + if logline.find(exclude) >= 0: + continue + elif white_line_matcher.match(logline): + continue + else: + result.append(logline.strip()+'\n') return result def insert_changelog (self, logfile, oldtag, newtag): -- 2.43.0