From 6b1389a48903e3ebb8692dd3105d445ac7b5683e Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 19 Mar 2026 13:39:18 +0530 Subject: [PATCH] fix: new line --- app/javascript/ui/LiteReplyBox.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/javascript/ui/LiteReplyBox.vue b/app/javascript/ui/LiteReplyBox.vue index 58c8f7b06..d92bbf48e 100644 --- a/app/javascript/ui/LiteReplyBox.vue +++ b/app/javascript/ui/LiteReplyBox.vue @@ -188,7 +188,9 @@ export default { if (!this.allowSignature) { return ''; } - const signature = this.customSignature || this.messageSignature; + // Normalize literal \n (from JSX string attributes) to real newlines + const raw = this.customSignature || this.messageSignature; + const signature = raw.replace(/\\n/g, '\n'); return this.showRichContentEditor ? signature : extractTextFromMarkdown(signature); @@ -498,8 +500,8 @@ export default {