Replacing EOLs with spaces in a variable - how to?

Hi!

Which actions can be helpful in a variable transformations? In my particular case I'd want to replace EOLs with spaces.

There are lots of actions that can manipulate variables in different ways, but for this particular use case, assuming you mean "ends of lines" i.e. line breaks, and assuming you're on a recent macOS release, I'd start with the "Search and Replace" action, and search for \R with a regular expression, replacing with a space.

image

3 Likes

Thanks, it did the job!

1 Like