openlibhums / janeway

A web-based platform for publishing journals, preprints, conference proceedings, and books
https://janeway.systems/
GNU Affero General Public License v3.0
168 stars 63 forks source link

Latest Posts News Summary Formatting #2568

Closed jscottbranson closed 1 month ago

jscottbranson commented 2 years ago

Describe the bug If I add a news item that begins with a few words of text, then a bullet list, the "Latest Posts" feed on the main press or journal pages will replace newlines with spaces, so the text becomes hard to read. In other words, the summary text on the main page does not include spaces between items that should be bullets.

Janeway version Master/head bac13f84

To Reproduce Steps to reproduce the behavior:

  1. Go to "News Manager"
  2. Add a news item that is just a bullet list
  3. View the summary of the news item in the "Latest News" feed - there aren't spaces between items in the bullet list, making the preview hard to read

Expected behavior It seems reasonable to assume a newline should be translated to a space when rendering the summary output for the Latest News feed.

Screenshots jw_issue_add

post_feed_issue

Note the lack of spaces between bullet items in the second screen shot.

Additional context Please let me know if this issue is with a plugin that Janeway uses, so I can refile the issue in the appropriate place. I really appreciate all the work that has gone into making this incredible publishing platform!

ajrbyers commented 1 month ago
Screenshot 2024-08-06 at 17 49 12

List items are now renedered with spaces using the new template tag.