Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make RSS feeds more readable #410

Merged
merged 2 commits into from
Dec 30, 2021
Merged

Make RSS feeds more readable #410

merged 2 commits into from
Dec 30, 2021

Conversation

duxovni
Copy link
Contributor

@duxovni duxovni commented Jul 21, 2021

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
Copy link

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

@zedeus zedeus merged commit 173dd8f into zedeus:master Dec 30, 2021
@zedeus
Copy link
Owner

zedeus commented Dec 30, 2021

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants