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'),
};