Hello,
I am looking for a way to “de-columnize” some text. So I have text like this:
Hello, my name is
Doug. I am looking
for a way to fix a
problem with text.
Thank you for your
help.
That needs to look like this:
Hello, my name is Doug. I am looking for a way to fix a problem with text.
Thank you for your help.
If you’ll notice, the second and third sentence remain separated by a return. So I want to be able to replace “(any letter) & (the carriage return)” with “(a single space) & (the carriage return)”.
This solution will allow me to flow the text without removing the returns at the end of sentences (which often need to remain).
I have my find-and-replace script in action already on this script, so I guess I could just use that, but I don’t know how AS handles carriage returns.
I tried:
findAndReplace(“s” & return, " ", thefile)
…this script works otherwise (will replace the “s” with a space if I remove the “& return”.
So what do I use instead of “return”?
Thanks!
EDIT:
Found it! ASCII character 10… The worst part is I found it in a script that I wrote just3 months ago. I need more coffee.