Hi Richard,

I don't think OFBiz service engine should be altering the content of a
string return value. If it was doing so I would have assumed that to be a
bug.

Do you have a small reproduction case we can check? How are you observing
that the return value has changed? Any chance the place you are observing
the string is not rendering carriage returns, newlines, tabs correctly?

If you are rendering the string in HTML, the browser is likely removing all
superfluous whitespace. In that case you would need to use <pre> tags in
your output.

Also, what version of OFBiz are you using?

Dan.

On Tue, 16 May 2023 at 17:59, Richard Fleming <[email protected]> wrote:

> Hi all,
> I have a service that creates a prompt and calls an outside API endpoint.
> The return from the API is formatted text.But when I get the return field
> from the ofbiz service, the formatting is lost.
> Is there a way for ofbiz to keep the text formatting in the return field?
> In this case the return field is defined as String.
> TIARick
>


-- 
Daniel Watford

Reply via email to