Need Text in Continue instead of line break

Dear Community,

I create Print Format for Supplier Doctype

In Supplier Doctype address field is small text so data come as
eg:
RR Tower
Near MM Hyper Market
Dubai
United Arab Emirates

but i need like R Tower, Near MM Hyper Market, Dubai, United Arab Emirates in print format.

Even it tried like

{{ doc.supplier_address.replace('\n', ', ') }}
but it come like this,

image

Kindly help me to solve this issue

I think you need to replace the HTML breaks

</br>

You can also use the individual fields instead of the HTML/TEXT.
This means you’ll need to use the Supplier’s linked address to
fetch the individual fields (address1, address2, city, etc).

This might get tricky if you have multiple addresses for the supplier.