From 6e1f44163ef1b4fa1deea2ea694005b6d0b66fd7 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Sat, 20 Jan 2024 13:45:44 -0700 Subject: [PATCH] Render newlines as newlines in chat --- crates/rich_text/src/rich_text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rich_text/src/rich_text.rs b/crates/rich_text/src/rich_text.rs index dc626ccdd15fd751387afdfa00427c4f9fcb778e..0b980ed37d892daf9e9d8cf9333c7436db7bbd62 100644 --- a/crates/rich_text/src/rich_text.rs +++ b/crates/rich_text/src/rich_text.rs @@ -250,7 +250,7 @@ pub fn render_markdown_mut( _ => {} }, Event::HardBreak => text.push('\n'), - Event::SoftBreak => text.push(' '), + Event::SoftBreak => text.push('\n'), _ => {} } }