hexo-generator-feed icon indicating copy to clipboard operation
hexo-generator-feed copied to clipboard

Spacing issue in content:encoded field of rss2

Open ertrzyiks opened this issue 4 years ago • 0 comments

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?

ertrzyiks avatar Dec 15 '19 08:12 ertrzyiks