Preserve line breaks on Rich Text Fields when importing CSV in a CMS collection

Hello,

I am generating a CSV file with Python and importing it into a CMS Collection on Webflow. One of the fields in the CMS collection is a Rich Text Field because I want to have line breaks on it.

In my Python script I am encoding the line breaks as \n however when I import it to Webflow the line break gets stripped and the text just shows up as a single line.

So my question is - How do I encode line breaks in my CSV file such that they’re preserved when importing it over to Webflow.

Thanks!

I should’ve done a bit more research before posting this. :sweat_smile:

But for anyone who stumbles on a similar problem, the solution is to encode the new lines as <br> tags.