Question

Replace formatter adding an unwanted space

  • 18 February 2022
  • 1 reply
  • 453 views

I am using the replace formatter to change a ‘,’ which has been used as a delimiter in a list. 

 

I want to replace the ‘,’ with ‘,NOS-’ so this is before every item on the list. When doing this is it is adding a space after the hyphen. So there is a unwanted space between the hyphen and list item. 

 

I understand I can use another formatter to remove all whitespace from string but I do not wish to do this as some of our list items include spaces between words which we do not want to loose.

Does anyone have an idea on how we can solve this issue?

 

Thanks :)


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +12

@StevenSimmonds 

It looks like there may be a space in the original list.. have you tried replacing ‘, ‘ with ‘,NOS-’ ?

Alternatively, you could try using the Formatter > Utilities > Line Item to Text and setting the Separator as ‘,NOS-’