From db98641a3277f01b8c98d128b555d230ba3ebd1b Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Tue, 27 Jun 2023 09:53:39 +0200 Subject: [PATCH] help: Template might be a better fit to create multiline strings The inject node doesn't create multiline strings as the help text explains. While there's indeed many ways to circumvent this, the Template node might be more "low-code" than the function node is. --- .../@node-red/nodes/locales/en-US/common/20-inject.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/common/20-inject.html b/packages/node_modules/@node-red/nodes/locales/en-US/common/20-inject.html index 6f72a5c33..bf0fb5c24 100644 --- a/packages/node_modules/@node-red/nodes/locales/en-US/common/20-inject.html +++ b/packages/node_modules/@node-red/nodes/locales/en-US/common/20-inject.html @@ -36,5 +36,5 @@ greater than one day you should consider using a scheduler node that can cope wi

Note: The "Interval between times" and "at a specific time" options use the standard cron system. This means that 20 minutes will be at the next hour, 20 minutes past and 40 minutes past - not in 20 minutes time. If you want every 20 minutes from now - use the "interval" option.

-

Note: To include a newline in a string you must use a Function node to create the payload.

+

Note: To include a newline in a string you must use the Function or Template node to create the payload.