St.write can't recognise '\n\n' in the response but when copied and used in the prints with new line


This is an example which I have shared. Please let know how to resolve and what could be reason for such behaviour. Even markdown doesn’t work and also allow html doesn’t work.

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).

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.