# Space between text array

**URL:** <https://community.make.com/t/space-between-text-array/57662>\
**Category:** Questions\
**Tags:** arrays\
**Created:** [October 11, 2024, 11:15pm UTC](https://community.make.com/t/space-between-text-array/57662 "2024-10-11T23:15:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadowarior](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Shadowarior](https://community.make.com/u/Shadowarior)\
**Post date:** [October 11, 2024, 11:15pm UTC](https://community.make.com/t/space-between-text-array/57662/1 "2024-10-11T23:15:34Z")

</div>

Hello,  
I have a real problem where I can’t find a solution.  
Following an Array agrégator, I aggregate several texts together.

The problem is that it generates large spaces between each group of text. I need something fluid.

However, in the “set variable” that aggregates them, I don’t put anything to separate them by several lines…

If you have any ideas, I’d love to hear them, as I’m running out.

Thank you very much.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/5/3533f9a9dd1d2d6e2073d21075b81bbb2c8b6ca2.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/6/c67cc3b47d181d9639d11bf31f7acc7fd91e4ca7.png)

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [October 12, 2024, 1:26am UTC](https://community.make.com/t/space-between-text-array/57662/2 "2024-10-12T01:26:25Z")

</div>

Hi @Shadowarior

if it is newlineyoucan use replace function:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/a/1a41351b0368d56a380555f09d1124871f0d4f5c.png)

Output:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/5/b5eddbf9e949ae5400dad9c32e1bbeaacf872f41.png)

**Best regards,**

**Msquare Automation**  
_Gold Partner of Make_  
@Msquare_Automation

---

<div class="post-metadata">

**Author:** ![Shadowarior](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Shadowarior](https://community.make.com/u/Shadowarior)\
**Post date:** [October 12, 2024, 11:04am UTC](https://community.make.com/t/space-between-text-array/57662/3 "2024-10-12T11:04:32Z")

</div>

Yes, it’s a solution, but the problem is that it won’t know the difference between a line between 2 paragraphs, which is natural and normal for a text to breathe, and the 3-4 lines skipped between two outputs… 😕

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [October 14, 2024, 4:57am UTC](https://community.make.com/t/space-between-text-array/57662/4 "2024-10-14T04:57:33Z")

</div>

Hi @Shadowarior

Try the following method:  
Sample text:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/d/cdc323e880a8b4c308a187a12ffca555eb3eefc2.png)

Splitting each line in text to remove line breaks.:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/2/2242e8963be87ce769b4268a0c1ac84f153c87be.png)

Aggregate all the lines with some texts(fill a space in the seperator column):

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/a/ea7c5a6529632e2fd64a770fbd0c586e30924aa3.png).  
Output:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/b/2b57d2aa03a95208809a56146674f148ae5dd688.png)

**Best regards,**

**Msquare Automation**  
_Gold Partner of Make_  
@Msquare_Automation

---

<div class="post-metadata">

**Author:** ![Shadowarior](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Shadowarior](https://community.make.com/u/Shadowarior)\
**Post date:** [October 14, 2024, 1:32pm UTC](https://community.make.com/t/space-between-text-array/57662/5 "2024-10-14T13:32:11Z")

</div>

Thank you very much for this technique. But the problem is my variable is the result of multiple arrays. In these arrays, there are spaces that I want to keep. The actual problem is the merge operation creates some huge gaps (a few blank lines). But when I try your technique, it erases all the blank lines, even those I want to keep. It’s all very problematic. I’m stuck.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 12, 2025, 2:40pm UTC](https://community.make.com/t/space-between-text-array/57662/6 "2025-01-12T14:40:28Z")

</div>


