def setText(self, content): if self.allow_br: content = '\n'.join(content.split("\\n")) WinterEditor.setText(self, content)