function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhi MehtaAbhi Mehta 

Next line getting ignored in apex trigger and coming out to be single line.

Hi Community,

I have a scenerio if anyone post something in case feed(FeedItem) then the latest comment should be copied to a field on case(Type - long text area)
Now trigger is working but, next line is getting ignored.

Ex :- 
My first line
My second line

What is happening is, in my trigger the following string value is coming out to be, Output :- My first lineMy second line.

Can anyone help?