clean rss.py
This commit is contained in:
parent
bec77841d4
commit
471b05aa82
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user