hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
6.63k stars 240 forks source link

Single linebreaks are lost when viewing textnote card #549

Closed tainio closed 1 month ago

tainio commented 1 month ago

When creating a new note and adding line breaks, the formatting is not preserved when viewing the note. The entire text is displayed on a single line.

Steps to reproduce:

  1. Create a new note.
  2. Enter text with multiple lines.
  3. Save the note.
  4. View the note. The text is displayed on a single line.

Note that editing the saved note displays line breaks correctly.

Running v0.18.0 with docker

Expected behavior: The note should be displayed with roughly the same formatting (considering limited space) as it was entered, including line breaks.

image image image

kamtschatka commented 1 month ago

indeed, that is quite inconsistent. I have created a PR to fix it.