From a820cf6812d1328e31f4a6beb3dd126bd0596b85 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 9 Nov 2014 15:01:50 +0100 Subject: [PATCH] Run :strip in After Makes more sense --- morss/morss.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index c76b8d1..a9232cd 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -675,10 +675,6 @@ def Before(rss, options): item.remove() continue - if options.strip: - del item.desc - del item.content - if options.empty: item.remove() continue @@ -693,6 +689,10 @@ def Before(rss, options): def After(rss, options): for i, item in enumerate(list(rss.items)): + if options.strip: + del item.desc + del item.content + if item.desc and item.content: if options.clip: item.content = item.desc + "

* * *


" + item.content