With SAP Netweaver Gateway, SAP delivers a great standard service for getting and processing SAP workflow tasks (/IWWRK/WFSERVICE).
In a recent situation I found out that the default behaviour of the service returns the description (body/message of the workflow task) ignoring new lines. It just concatenates the text in one long string.
Showing this on the client (a native iOS app in my case) does not look good. Luckily SAP provides some BADI's that can be implemented to alter the default behaviour.