I made a scriptrunner mail handler to create issues when sent to mail. My client requested to replace the * in desciption to "¤" character so before setting the description of the issue I just used String x=MailUtils.getBody(message).replace('*', '¤') and passed x in issueobject.setDescription(x). Now the stars are getting replaced with ¤ but the line breaks are not preserved . How to get the line breaks and replace the character at the same time.
Thanks in advance.