Run :strip in After

Makes more sense
master
pictuga 2014-11-09 15:01:50 +01:00
parent 607df4b123
commit a820cf6812
1 changed files with 4 additions and 4 deletions

View File

@ -675,10 +675,6 @@ def Before(rss, options):
item.remove() item.remove()
continue continue
if options.strip:
del item.desc
del item.content
if options.empty: if options.empty:
item.remove() item.remove()
continue continue
@ -693,6 +689,10 @@ def Before(rss, options):
def After(rss, options): def After(rss, options):
for i, item in enumerate(list(rss.items)): for i, item in enumerate(list(rss.items)):
if options.strip:
del item.desc
del item.content
if item.desc and item.content: if item.desc and item.content:
if options.clip: if options.clip:
item.content = item.desc + "<br/><br/><center>* * *</center><br/><br/>" + item.content item.content = item.desc + "<br/><br/><center>* * *</center><br/><br/>" + item.content