Skip to contentSkip to conversation

oe-stylize: remove trailing newline when printing unknown variable/routine

PATCH New Andreas Oberritter 1 participant 1 message Dec 9, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oe-stylize: remove trailing newline when printing unknown variable/routine

---
 contrib/oe-stylize.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/oe-stylize.py +1 -1
index 0a1346c..3c383bc 100755
@@ -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 = []
Signature · 1 line
1.7.2.3