# How remove space between infotexts?

**URL:** <https://community.silverfin.com/t/how-remove-space-between-infotexts/2046>\
**Category:** Templates\
**Created:** [March 15, 2021, 12:44pm UTC](https://community.silverfin.com/t/how-remove-space-between-infotexts/2046 "2021-03-15T12:44:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahaegglund](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@ahaegglund](https://community.silverfin.com/u/ahaegglund)\
**Post date:** [March 15, 2021, 12:44pm UTC](https://community.silverfin.com/t/how-remove-space-between-infotexts/2046/1 "2021-03-15T12:44:51Z")

</div>

Hi,

We have some infotext that we want to appear if certain conditions are met. However there is a lot of space between the infotexts. Can this be removed? I want it to look as the test I have put in the code for xxx and yyy. Ie no space.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/8/87d9dac810305472a85754f1245ced6137d606a2.png)

Kind regards,  
Anna

---

<div class="post-metadata">

**Author:** ![Fintrax](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/fintrax/32/1642_2.png) [@Fintrax](https://community.silverfin.com/u/Fintrax)\
**Post date:** [March 15, 2021, 12:50pm UTC](https://community.silverfin.com/t/how-remove-space-between-infotexts/2046/2 "2021-03-15T12:50:38Z")

</div>

Hi Anna

You should be able to do this by letting your `{% endif %}` end at the same place as your `{:/infotext}` and you probably need to put the start of your next `if statement` there too.

Just FYI: Another way is to put `stripnwelines` around the code thing and add `{% newline %}` at the right places.

Kind regards  
Sam  
Fintrax

---

<div class="post-metadata">

**Author:** ![ahaegglund](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@ahaegglund](https://community.silverfin.com/u/ahaegglund)\
**Post date:** [March 15, 2021, 1:26pm UTC](https://community.silverfin.com/t/how-remove-space-between-infotexts/2046/3 "2021-03-15T13:26:33Z")

</div>

Thank you, it works!
