Describe the problem/error/question
Hi team,
I want to remove newline characters (\n) from the output. I am using the replace function, but the \n still appears in the output.
Could anyone please help with this?
Thanks.
What is the error message (if any)?
\n \n both should be removed from propertyName1.
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
n8n version:
Database (default: SQLite):
n8n EXECUTIONS_PROCESS setting (default: own, main):
Running n8n via (Docker, npm, n8n cloud, desktop app):
Operating system:
n8n
July 10, 2024, 3:49pm
2
It looks like your topic is missing some important information. Could you provide the following if applicable.
n8n version:
Database (default: SQLite):
n8n EXECUTIONS_PROCESS setting (default: own, main):
Running n8n via (Docker, npm, n8n cloud, desktop app):
Operating system:
@Gouravdev , you seem to have two different βtypesβ of new line - actually a new line and the representation of the new line with β\nβ. Your expression is removing the actual new line but not the string β\nβ. You need to add .replaceAll('\n', ' ')
alongside .replace(/\\n/g, ' ')
.
1 Like
system
Closed
October 9, 2024, 1:50am
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.