hexojs / hexojs/hexo-generator-feed
Spacing issue in content:encoded field of rss2
- Dominant language
- JavaScript
- Stars
- 595
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the rss2 template and the noControlChars filter used by post.content. Reproduce the issue with the two-line Markdown example, then verify that generated content:encoded preserves a separator between lines and add or update the relevant feed-generation test if one exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100