Make RSS feeds more readable #410

Merged
duxovni merged 2 commits from nicer-rss into master 2021-12-29 20:27:47 -05:00
duxovni commented 2021-07-21 19:14:45 -04:00 (Migrated from github.com)

The tweets retrieved by Nitter use literal newline characters rather than HTML <p> or <br> tags. When these are included verbatim in RSS feeds, some RSS readers will just concatenate all the lines together, which can make tweets difficult to understand. The pre-wrap attribute used by the Nitter UI won't necessarily be respected by RSS readers, so this PR inserts <br> tags alongside newlines as a best-effort attempt to improve readability. In addition, it shortens the titles of RSS feed items to a truncated prefix of the tweet text, rather than having an awkwardly long title that duplicates the description. I can split those into two separate PRs if that's preferable.

The tweets retrieved by Nitter use literal newline characters rather than HTML `<p>` or `<br>` tags. When these are included verbatim in RSS feeds, some RSS readers will just concatenate all the lines together, which can make tweets difficult to understand. The `pre-wrap` attribute used by the Nitter UI won't necessarily be respected by RSS readers, so this PR inserts `<br>` tags alongside newlines as a best-effort attempt to improve readability. In addition, it shortens the titles of RSS feed items to a truncated prefix of the tweet text, rather than having an awkwardly long title that duplicates the description. I can split those into two separate PRs if that's preferable.
Joshndroid commented 2021-07-24 05:38:07 -04:00 (Migrated from github.com)

I have been looking for a solution to the comically long titles in my rss reader for feeds, this could be it.

I have been looking for a solution to the comically long titles in my rss reader for feeds, this could be it.
zedeus commented 2021-12-29 20:27:53 -05:00 (Migrated from github.com)

I don't use Nitter's RSS feature myself, so I have no strong opinions on this, but it looks good to me. Thank you!

I don't use Nitter's RSS feature myself, so I have no strong opinions on this, but it looks good to me. Thank you!
Sign in to join this conversation.
No description provided.