def convert_linebreaks(self, text):
        return text.replace(r'\n', r'<br>')
Extra method for cleaning linebreaks
dataset/ETHPy150Open evennia/evennia/evennia/utils/text2html.py/TextToHTMLparser.convert_linebreaks