From ae4550ffcd745e42ef53e6b3c8771ec59a9a33c9 Mon Sep 17 00:00:00 2001 From: Eevee Date: Mon, 13 Sep 2010 00:25:19 -0700 Subject: [PATCH 1/1] No need for ellipses on short RSS entries. --- splinext/frontpage/sources.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/splinext/frontpage/sources.py b/splinext/frontpage/sources.py index 21c6270..9b70d4b 100644 --- a/splinext/frontpage/sources.py +++ b/splinext/frontpage/sources.py @@ -193,6 +193,11 @@ class FeedSource(CachedSource): # If there be a summary, cheerfully trust that it's actually a # summary content = entry.summary + elif 'content' in entry and \ + len(entry.content[0].value) <= self.SUMMARY_LENGTH: + + # Full content is short; use as-is! + content = entry.entry.content[0].value elif 'content' in entry: # Full content is way too much, especially for my giant blog posts. # Cut this down to some arbitrary number of characters, then feed -- 2.7.4