View Single Post
Old 12-20-2024, 05:57 AM   #10
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Nicolas.Laurent View Post
Thank you Chaley, it's exactly what I need. But unfortunately, it doesn't work, the author remains the same (as you can see from the screenshot attached to your reply). it probably requires a minor modification to the code, but my attempts were unsuccessful...
It works fine for me.

Example:
  • Before search & replace
    Click image for larger version

Name:	Before S&R.jpg
Views:	150
Size:	13.7 KB
ID:	212574
  • The search and replace
    Click image for larger version

Name:	S & R.jpg
Views:	139
Size:	162.3 KB
ID:	212575
  • After search and replace
    Click image for larger version

Name:	After S&R.jpg
Views:	155
Size:	12.4 KB
ID:	212576

    As you can see, the authors are inverted.

The image on my original post also shows the correct result. When using template search & replace the test result show the "after" in both the "Test text" and the "Test result" because the template output is the source.
chaley is offline   Reply With Quote