mirror of
https://github.com/maubot/rss.git
synced 2025-09-18 20:14:38 -04:00
Strip surrounding whitespace from item summary
This commit is contained in:
parent
08ff28bf30
commit
947c4748b8
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue