Frappe .throw() with new line

import os
frappe.throw(_(“To date cannot be before from date \n hello”))

the output:
To date cannot be before from date hello

take the \n but not active in message

can you help me .

@Mohamed_Alijla,

try the <br> tag instead of \n

Thanks, Makarand

2 Likes

frappe.throw(_(“To date cannot be before from date
hello”))

thank you @makarand_b