Copying code into head causes Wappler to break the code

I raised this issue some time last year. I can’t find the thread and I think the issue was at least partly addressed after that. However, there was still a problem mentioned in this thread.

Looking at @swf 's examples, perhaps the behaviour has reverted to when I first mentioned it. I have raised related issues a few times (the last time a week or so ago).