Add spaces to text...?

Good day.
I have a new problem…
It seems to be simple but I don’t have a method to solve it…
The thing is, I want to add or move all the text “N” spaces to the right.
I tried concatenating but it has no effect on each of the paragraphs of the text… only at the beginning… I’m looking for it to affect all the paragraphs…
Could you help me, thank you very much.

@AM3D.BIM.STUDIO ,

like this


or replace " " by " "?

It is not a list of texts, it is a single indentation text, it must be understood as one and what is required is to move all the text and indentations to the right side…

@AM3D.BIM.STUDIO something like this?

Each line break would need to be extracted to be able to add the additional characters to the start of each ‘line’ before combining again.

1 Like

String replace can do the trick. Replace the new line character with the new line character and the padding, then add the padding to the front as well.
In a code block where the inputs are a string with your spacing string and the original string, it’d be something like this:

spacing + String.Replace(originalString,”\n”,”\n“+spacing); 
2 Likes