# Pasting multiline text into inject node issue

**URL:** <https://discourse.nodered.org/t/pasting-multiline-text-into-inject-node-issue/71618>\
**Category:** General\
**Created:** [2 December 2022 16:29 UTC](https://discourse.nodered.org/t/pasting-multiline-text-into-inject-node-issue/71618 "2022-12-02T16:29:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [2 December 2022 16:29 UTC](https://discourse.nodered.org/t/pasting-multiline-text-into-inject-node-issue/71618/1 "2022-12-02T16:29:54Z")

</div>

When pasting some multiline text into input node as a string, it seems to be replacing linefeed/CRs with just a plain space.

Which is making it tricky to split the text into lines

My workaround is to paste into a text file, save it and the use file read node but that's a bit of a faff

Bug or feature? 🙂

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 December 2022 16:31 UTC](https://discourse.nodered.org/t/pasting-multiline-text-into-inject-node-issue/71618/2 "2022-12-02T16:31:53Z")

</div>

This is true of any HTML Input field on any webpage - they do not support multi-line content and strip newlines when you paste into them.

This is one of the reasons the Template node exists.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [2 December 2022 16:42 UTC](https://discourse.nodered.org/t/pasting-multiline-text-into-inject-node-issue/71618/3 "2022-12-02T16:42:45Z")

</div>

Never thought of using the template node - much easier workaround 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 January 2023 16:43 UTC](https://discourse.nodered.org/t/pasting-multiline-text-into-inject-node-issue/71618/4 "2023-01-31T16:43:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
