# Extra spaces and line break after inserting snippets

**URL:** <https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474>\
**Category:** Questions and Help\
**Created:** [June 4, 2022, 6:51am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474 "2022-06-04T06:51:59Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pratik\_Shah](https://community.blaze.today/user_avatar/community.blaze.today/pratik_shah/32/3339_2.png) [@Pratik\_Shah](https://community.blaze.today/u/Pratik_Shah)\
**Post date:** [June 4, 2022, 6:51am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/1 "2022-06-04T06:51:59Z")

</div>

I am extracting information from google sheet and using these info as dropdown. However, when I select the options and execute it, it comes with extra spaces and extra line break.

1. I have kept trim function but still extra spaces.  

2. While executing snippet. If you see, there is space between word and comma, which is not required.  

3. Output with extra space and line-break. Cursor is coming in next line.  
 ![image](https://community.blaze.today/uploads/default/original/2X/6/6c0b9a9ea71806eb3bd049aadd2751da4f1c8a41.png)

I am not really sure whether this is because of google sheet urlload command or I am not doing trim properly. @Cedric_Debono_Blaze Thanks

---

<div class="post-metadata">

**Author:** ![Brad\_Hedinger](https://community.blaze.today/user_avatar/community.blaze.today/brad_hedinger/32/9060_2.png) [@Brad\_Hedinger](https://community.blaze.today/u/Brad_Hedinger)\
**Post date:** [June 5, 2022, 10:58pm UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/2 "2022-06-05T22:58:58Z")

</div>

Sometimes this happens with Snippets my teams and I use in Salesforce Lightning. The solution I implemented was to put a {key:backspace} command to get rid of the line break. Sometimes we need to get a little creative and combine it with an arrow key command or 2 to get it to work how it must in a particular field. Salesforce is notorious for fields behaving differently despite them looking the same on the surface.

Hope this idea helps spark a solution for you!  
-Brad

---

<div class="post-metadata">

**Author:** ![Pratik\_Shah](https://community.blaze.today/user_avatar/community.blaze.today/pratik_shah/32/3339_2.png) [@Pratik\_Shah](https://community.blaze.today/u/Pratik_Shah)\
**Post date:** [June 6, 2022, 3:20am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/3 "2022-06-06T03:20:17Z")

</div>

> [@Brad\_Hedinger](#):
>
> The solution I implemented was to put a {key:backspace} command to get rid of the line break

Thanks Brad, that's really creative thinking. I never had a thought like that.

---

<div class="post-metadata">

**Author:** ![Gaurang\_Tandon](https://community.blaze.today/user_avatar/community.blaze.today/gaurang_tandon/32/3796_2.png) [@Gaurang\_Tandon](https://community.blaze.today/u/Gaurang_Tandon)\
**Post date:** [June 6, 2022, 7:20am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/4 "2022-06-06T07:20:01Z")

</div>

Before your `{endnote}`, can you add this:

`{current_options_trimmed = map(current_options, x -> trim(x))}`

Basically, this trims each item in the list manually. Then use `current_options_trimmed` in your formmenu. Hopefully this will work.

---

<div class="post-metadata">

**Author:** ![Pratik\_Shah](https://community.blaze.today/user_avatar/community.blaze.today/pratik_shah/32/3339_2.png) [@Pratik\_Shah](https://community.blaze.today/u/Pratik_Shah)\
**Post date:** [June 6, 2022, 8:06am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/5 "2022-06-06T08:06:06Z")

</div>

Thank you Gaurang, that worked. One last thing, there is extra line-break before the sentence as well? how do I remove it? E.g. above _Anxiety worsening...._

---

<div class="post-metadata">

**Author:** ![Gaurang\_Tandon](https://community.blaze.today/user_avatar/community.blaze.today/gaurang_tandon/32/3796_2.png) [@Gaurang\_Tandon](https://community.blaze.today/u/Gaurang_Tandon)\
**Post date:** [June 6, 2022, 8:24am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/6 "2022-06-06T08:24:41Z")

</div>

Might be due to the snippet layout itself. Try putting the chips in the snippet consecutive to each other (next to each other on same line) or try putting `trim=yes` in some of them that are near the line break.

---

<div class="post-metadata">

**Author:** ![Pratik\_Shah](https://community.blaze.today/user_avatar/community.blaze.today/pratik_shah/32/3339_2.png) [@Pratik\_Shah](https://community.blaze.today/u/Pratik_Shah)\
**Post date:** [June 6, 2022, 8:37am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/7 "2022-06-06T08:37:31Z")

</div>

Thanks. That's what I thought and it worked. Thank you for all your help.

---

<div class="post-metadata">

**Author:** ![Gaurang\_Tandon](https://community.blaze.today/user_avatar/community.blaze.today/gaurang_tandon/32/3796_2.png) [@Gaurang\_Tandon](https://community.blaze.today/u/Gaurang_Tandon)\
**Post date:** [June 6, 2022, 8:44am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/8 "2022-06-06T08:44:32Z")

</div>

You are welcome, glad I was able to help 🙂

---

<div class="post-metadata">

**Author:** ![Ethan\_Balikalaba](https://community.blaze.today/user_avatar/community.blaze.today/ethan_balikalaba/32/11456_2.png) [@Ethan\_Balikalaba](https://community.blaze.today/u/Ethan_Balikalaba)\
**Post date:** [May 17, 2024, 4:19pm UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/9 "2024-05-17T16:19:46Z")

</div>

This is really late, but I found that If I copy and paste what I want with ctrl + shift + v

It retains the formatting it had before without adding a space or extra lines.

Try fixing the issue with formatting in google sheet, and then copy pasting with shift into text blaze.

---

<div class="post-metadata">

**Author:** ![Sascha\_Ballweg](https://community.blaze.today/user_avatar/community.blaze.today/sascha_ballweg/32/17895_2.png) [@Sascha\_Ballweg](https://community.blaze.today/u/Sascha_Ballweg)\
**Post date:** [November 26, 2026, 8:43am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/10 "2026-11-26T08:43:36Z")

</div>

Extremely late to the party, but… in our corporate environment, we frequently use Text Blaze snippets outside of the web browser—specifically in our **local email clients.**  
The issue, however, is that the shortcut-based snippet insertion function doesn’t work there.

As a workaround, we generate the required snippet using the "Preview" function; however, the "Trim" settings are completely ignored when doing so.

This line, which is correct according to the "Try it out" feature, is rendered in the preview with two line breaks before and after the drop-down menu:

```auto
… in unserem Webshop {formmenu: default=schwitzen.com; koerperpflege.com; uv-geraet.com; laulas.com; name=Webshops; trim=no} aufzugeben.

```

Whether or not to trim remains irrelevant, unfortunately.  
Is there anything that can be done about this, or should I **report it as a bug?**

---

<div class="post-metadata">

**Author:** ![AshwinMittal](https://community.blaze.today/user_avatar/community.blaze.today/ashwinmittal/32/18048_2.png) [@AshwinMittal](https://community.blaze.today/u/AshwinMittal)\
**Post date:** [November 26, 2026, 1:08pm UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/11 "2026-11-26T13:08:28Z")

</div>

Hi @Sascha_Ballweg,

Thanks for reporting the issue!

Are you using our desktop apps ([Windows](https://blaze.today/windows) or [Mac](https://blaze.today/mac)) to insert the snippets outside of the browser?

---

<div class="post-metadata">

**Author:** ![Sascha\_Ballweg](https://community.blaze.today/user_avatar/community.blaze.today/sascha_ballweg/32/17895_2.png) [@Sascha\_Ballweg](https://community.blaze.today/u/Sascha_Ballweg)\
**Post date:** [November 26, 2026, 2:06pm UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/12 "2026-11-26T14:06:26Z")

</div>

I am using **macOS Ventura 13.7.8** (22H730), which appears to be **unsupported**.  
Consequently, I installed the **Chrome app** after being prompted to perform the installation via the browser.

In the **Chrome app preview,** I also get two unnecessary line breaks, whereas everything **is correct when using the "Try it out" feature.**  
However, far too many clicks are required to be able to use "Try it out" effectively.

Any ideas?

---

<div class="post-metadata">

**Author:** ![AshwinMittal](https://community.blaze.today/user_avatar/community.blaze.today/ashwinmittal/32/18048_2.png) [@AshwinMittal](https://community.blaze.today/u/AshwinMittal)\
**Post date:** [November 27, 2026, 7:43am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/13 "2026-11-27T07:43:01Z")

</div>

Hi @Sascha_Ballweg,

Could you please share the snippet that is having this issue with me at [ashwin@blaze.today](mailto:ashwin@blaze.today)?

You can do this by copying the snippet into a separate folder and sharing that folder with me.

---

<div class="post-metadata">

**Author:** ![Sascha\_Ballweg](https://community.blaze.today/user_avatar/community.blaze.today/sascha_ballweg/32/17895_2.png) [@Sascha\_Ballweg](https://community.blaze.today/u/Sascha_Ballweg)\
**Post date:** [November 27, 2026, 8:05am UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/14 "2026-11-27T08:05:57Z")

</div>

Shared – you are now an editor. Please note that…

> [@Sascha\_Ballweg](#):
>
> As a workaround, we generate the required snippet using the "Preview" function; however, the "Trim" settings are completely ignored when doing so.

**line break formatting is correct in the preview,** but not when we copy the section and paste it elsewhere (e.g., into a **plain text editor** like Notepad++).

---

<div class="post-metadata">

**Author:** ![AshwinMittal](https://community.blaze.today/user_avatar/community.blaze.today/ashwinmittal/32/18048_2.png) [@AshwinMittal](https://community.blaze.today/u/AshwinMittal)\
**Post date:** [November 27, 2026, 12:43pm UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/15 "2026-11-27T12:43:56Z")

</div>

Hi @Sascha_Ballweg,

If I understand correctly, you are copying from Chrome and pasting into Notepad++? Are you on macOS or Windows?

---

<div class="post-metadata">

**Author:** ![Sascha\_Ballweg](https://community.blaze.today/user_avatar/community.blaze.today/sascha_ballweg/32/17895_2.png) [@Sascha\_Ballweg](https://community.blaze.today/u/Sascha_Ballweg)\
**Post date:** [November 27, 2026, 12:55pm UTC](https://community.blaze.today/t/extra-spaces-and-line-break-after-inserting-snippets/19474/16 "2026-11-27T12:55:33Z")

</div>

I am using macOS Ventura 13.7.8 (22H730) and copy into the **plain text editor BBEdit** (which is only similar to notepad++)
