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

Spacing issue in content:encoded field of rss2 #122

Open
ertrzyiks opened this issue Dec 15, 2019 · 0 comments
Open

Spacing issue in content:encoded field of rss2 #122

ertrzyiks opened this issue Dec 15, 2019 · 0 comments

Comments

@ertrzyiks
Copy link

I have a post content written in markdown like this

This is a first line of text
then I start a new line of text.

When rss2 file is created the content:encoded contains:

This is a first line of textthen I start a new line of text.

Note missing space between the first and the second line.

In my case I fixed it by using a custom template that instead of

post.content | noControlChars | safe

renders

post.content | replace("\n", " ") | noControlChars | safe

What do you think about making it a default behavior of noControlChars filter though?

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

No branches or pull requests

1 participant