notecrumbs

a nostr opengraph server build on nostrdb and egui
git clone git://jb55.com/notecrumbs
Log | Files | Refs | README | LICENSE

commit a0a2a5126fa01aa09be1f8ebfcf7221e4c968640
parent ab5c82e0e9ca41dad7558c2f5bcdcb161a93a184
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 22 Oct 2025 09:56:51 -0700

fix newlines in notes

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/html.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/html.rs b/src/html.rs @@ -194,7 +194,7 @@ pub fn render_note_content(body: &mut Vec<u8>, note: &Note, blocks: &Blocks) { } BlockType::Text => { - let text = html_escape::encode_text(block.as_str()); + let text = html_escape::encode_text(block.as_str()).replace("\n", "<br/>"); let _ = write!(body, r"{}", text); }