mirror of
https://github.com/maubot/rss.git
synced 2024-10-01 08:25:36 -04:00
Strip surrounding whitespace from item summary
This commit is contained in:
parent
08ff28bf30
commit
947c4748b8
@ -209,7 +209,7 @@ class RSSBot(Plugin):
|
||||
summary = (entry.get("summary")
|
||||
or entry.get("content_html")
|
||||
or entry.get("content_text")
|
||||
or "")
|
||||
or "").strip()
|
||||
id = str(entry["id"])
|
||||
link = entry.get("url") or id
|
||||
return Entry(feed_id=feed_id, id=id, date=date, title=title, summary=summary, link=link)
|
||||
@ -247,7 +247,7 @@ class RSSBot(Plugin):
|
||||
).hexdigest()),
|
||||
date=cls._parse_rss_date(entry),
|
||||
title=getattr(entry, "title", ""),
|
||||
summary=getattr(entry, "description", ""),
|
||||
summary=getattr(entry, "description", "").strip(),
|
||||
link=getattr(entry, "link", ""),
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user