From e65a593a121935a245ef02b24d2b9464665c05f8 Mon Sep 17 00:00:00 2001 From: SavagePeanut Date: Mon, 29 Jul 2024 13:40:13 -0500 Subject: don't replace newlines with
in matrix code blocks --- src/matrix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix.rs b/src/matrix.rs index cebddfd..0c359d1 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -52,7 +52,7 @@ pub fn format_for_matrix(body: String, mentions: Option(); chars = [&chars[..index + 1], &substring.replace('\n', "
").chars().collect::>()[..], &chars[replace_newlines_to..]].concat(); - } else if tag == "
" {
+        } else if tag.starts_with("
") {
             replace_newlines_to = index;
         }
 
-- 
cgit v1.2.3