Hey @Darshan_Devesan,
Check out this thread where we were chatting about essentially the same issue.
The TLDR is: to get Streamlit to recognize the newline, you need to put two whitespace characters in front of the newline character (related GitHub Issue).