Text replacement

Hi.

I have a strange behaviour with the text replace action. Although the search string is not found, the file will be rewritten. And at the end of the file, there is a new line. What I would like to have, is that only when the search text is found and replaced, the file should be rewritten. And of course there shouldn't be a new line at the end of the file (the original file has no new line at the end of the file).

Does someone has any idea?

Thank you,

Dirk

Hi Dirk,

What build of FinalBuilder are you using? I recall that there was a similar bug fixed no so long ago.

.t8

Hi Tate.
I have the version 5.5.0.707. Is there a new one?
(of course, there is the version 6. :wink:

Dirk

ah! you’re on FB5… and you’re on the latest build.

Are you using Text Replace, or Text Find / Replace ?

I’m using the Testxt Find / Replace action, because the other one was depricated.

Sorry for the delay Dirk - please try this build:
https://www.finalbuilder.com/downloads/finalbuilder/550/FB550_746.exe

Hi Tate.

Thank you for the new build. Now, there is no new line at the end of the file, but again the file is rewritten although the search string isn’t found (at least the file date has changed).

oops, I’d fixed it in FB6 branch but forgot to merge that change into FB5… try this build:

https://www.finalbuilder.com/downloads/finalbuilder/550/FB550_748.exe

Hi Tate.

Thank you. That build works like a charm :wink:

Dirk