I’m moving some ACF code over to Lucee.
I have a component function that literally returns a string value from a DB lookup.
I have returnFormat=“plain” output=“false” in the cffunction header.
Under ADF the string is returned without issue.
Under Lucee the string is returned but seems to have additional empty space before it.
E.g. even if I alter it to be
<cfreturn “test string value”>
If I dump this with a JS alert on return I get the actual text several lines down the window and opposed to the top.
I can add a .trim() to it before it gets passed on but why the difference between ACF and Lucee and where are the spaces coming from?
Any ideas, many thanks?