aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Turbing <pascal@turbing.de>2009-12-05 19:46:11 +0100
committerPascal Turbing <pascal@turbing.de>2009-12-05 19:46:11 +0100
commite1e9ca14cbf4dedd3aa60b02a6f78dca642a2c90 (patch)
tree14ae242d78191b7d63c3226241b8c6e17741f47e
parent3e8155ab6e59022211edd3328c5dc0613135cc0e (diff)
parent6ed3f5009f03e0f6287381a3a6a5350f0fb7c55e (diff)
Merge branch 'master' of git@fucktheforce.de:blogthon
-rwxr-xr-xblogthon.cgi10
1 files changed, 5 insertions, 5 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 1530c29..855302a 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -263,14 +263,14 @@ elif feed_display == "rss":
print ' <link>' + blog_url + '?p=' + title + '</link>'
print ' <guid>' + title_md5sum + '</guid>'
print ' <pubDate>' + date + '</pubDate>'
- print ' <description>'
content = open(str(entries[i][1]), 'r')
+ rss_description= ''
for h in xrange(0, int(feed_preview)):
- rss_line = content.readline().strip()
- if rss_line != '':
- print ' ' + rss_line
+ line = content.readline().strip()
+ if line:
+ rss_description = rss_description + line + '<br />'
content.close()
- print ' </description>'
+ print ' <description><![CDATA[' + rss_description + ']]></description>'
print ' </item>'
print ' </channel>'
print '</rss>'