141
Views
10
Comments
Spacing between two expressions without using margin
Question
Service Studio Version
11.53.21 (Build 61476)

Hello everyone!

I have several expressions stick together (because different styles: some expression have to be in bold) but the problem is the spacing between them.

When I use for example on a expression:  formatDate(...) + " ", the " " isn't diplay on the page.

How can I do to display the spacing withou using margin.

Thank you



2025-01-15 08-35-04
Vignesh Sekar

hi ,

use +" "+

2024-11-20 08-28-20
Pedro Marques

Hi Shamin,

Adding " " + FormatDate() + " " should work. 

But you can try to add the space to the static text, if you are sure the expression will always have a value.

"Modification " instead of "Modification", and so on...

Let me know if this helps,

Pedro

2024-01-04 15-15-51
Abed Al Banna

Hi @Shamin KURREEMBOKUS 

There are several approaches for this:

1. Add spaces to the text that comes right before or after those expressions. 

Example: "Modification ", "on the ", " Par John Doe"...


2.Convert the Date or Time to Text and add space to that text using TimeToText() and DateToText() built-in functions.

Example:

DateToText(23/02/2022) + " "

TimeToText(17,20,0) + " "


Choose whichever approach makes more sense for you.


I hope this helps!


2018-06-05 16-54-03
Maria da Graça Peixoto

Hi! 

Have you tried to insert a container with "min-width" 2px or 3px between the expressions? 

Regards

Graça

UserImage.jpg
Puja Rani

Hi,

Not sure if I get it correctly but you mentioned " " isn't displayed on page. In order to display this use like - formatdate(....)+"""+"""+   ... To add space you use - formatdate(....)+ " "+

UserImage.jpg
Shamin kurreembokus

Thank you all for your answer.

I put an " " + Description + " ". But the spaces doesn't display on the page (all of the texts are on the expression).

2025-02-10 17-24-13
Arun Rajput

Hi @Shamin KURREEMBOKUS ,

Please try to enclose each expression into the container which will automatically provide space between them.

Thanks 

Arun Rajput

UserImage.jpg
Shamin kurreembokus

Okay I find the problem,

There is a CSS properties "white-space: nowrap" on the expression widget. I change this to pre-wrap and now it works

Thank All for your contribution.

2025-02-10 17-24-13
Arun Rajput

Happy to hear that you find solution.

2023-10-21 19-42-11
Tousif Khan
Champion

Since you have found the solution yourself, you can mark your comment and this   post as a solution for future references for others.

Thanks
Tousif Khan

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.