Extra Lines in the files while placing on Target

A process flows places extra spaces between the record in the file while placing it on the target. How to remove these extra line breaks.

Cause:-

An unnecessary space addition in the mapping debugger is created while ending the record used with a carrier line feed (CR-LF). Due to this unnecessary space at the end of last record in mapping, an extra space is seen at the end of each records.

Solution:-

This issue can be resolved by modifying the mapping rule and using the normalize-space at target element 'Product'.