diff --git a/src/rss.py b/src/rss.py index cba2fbb..9838b11 100644 --- a/src/rss.py +++ b/src/rss.py @@ -22,7 +22,7 @@ def line2words(lines, limit): l = len(word) if limit > 0 and (l + char_count > limit): break_outer_loop = True - break; + break output.append(word) char_count += l if break_outer_loop: @@ -38,7 +38,7 @@ def line2words(lines, limit): # this is similar tot he markup function in microblog def enrich_msg(lines, is_atom=True): if not is_atom: - return string + return lines content = [] parser = My_Html_Parser([]) for line in lines: