From bbd15964c3af5e06c24aa040dc58ebeca2872d93 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Fri, 10 Dec 2010 01:05:02 +0000 Subject: oe-stylize: remove trailing newline when printing unknown variable/routine Signed-off-by: Andreas Oberritter --- contrib/oe-stylize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/oe-stylize.py b/contrib/oe-stylize.py index 0a1346c180..3c383bcfbb 100755 --- a/contrib/oe-stylize.py +++ b/contrib/oe-stylize.py @@ -379,7 +379,7 @@ if __name__ == "__main__": line = follow_rule(5, line) if var == "": if not in_routine: - print "## Warning: unknown variable/routine \"%s\"" % originalLine + print "## Warning: unknown variable/routine \"%s\"" % originalLine.rstrip('\n') var = 'others' for c in commentBloc: seen_vars[var].append(c) commentBloc = [] -- cgit 1.2.3-korg