ChatGTP module returns a result with two line breaks at the start and I want them removed to send to RenderForm to generate an image.
Hi. Use trim function or even use replace if the you have empty lines more than empty spaces before the string
Thanks, Helio!
Wemakefuture
If you have questions reach out
2 Likes
Thanks! Had almost the same suggestion in the FB group and experimented until I ended up with the second option above. Works like a charm.