diff --git a/adstreme/glade/kg_calc.py b/adstreme/glade/kg_calc.py index f54c295..56470b6 100644 --- a/adstreme/glade/kg_calc.py +++ b/adstreme/glade/kg_calc.py @@ -1,6 +1,8 @@ #!/usr/bin/env python #TODO: funktion, die aus parametern schoene listen macht. +import string + class KeywordGenerator: def __init__(self): import string,sys @@ -52,7 +54,7 @@ class KeywordGenerator: for tmplist2item in tmplist2: ret += self.quotes_and_braces(tmplist2item) ret += "\n" - return ret[:-3] #cut the tailing '\n\n\n' + return ret[:-3]+ string.replace(ret[-3:],"\n","")#cut the tailing '\n\n\n' ''' def test():