From e92f1f89a882fc4dbe5f92f266c5ed5056dc1940 Mon Sep 17 00:00:00 2001 From: Hoid Date: Tue, 17 Feb 2026 22:19:03 +0000 Subject: [PATCH] Fix email formatting: convert newlines to
for FreeScout HTML body --- bin/docfast-support | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/docfast-support b/bin/docfast-support index 5c24030..65ed1a9 100755 --- a/bin/docfast-support +++ b/bin/docfast-support @@ -123,10 +123,12 @@ async function cmdReply(args) { process.exit(1); } + // FreeScout body field is HTML — convert plain text newlines to
tags + const htmlBody = message.replace(/\n/g, '
\n'); const body = { type: draft ? 'note' : 'message', text: message, - body: message, + body: htmlBody, user: 6, status: status || (draft ? undefined : 'active'), };