I’m overriding the clean method for my variables and want to specify a custom error message on error.
myErrorMsg = "This is my error Message"
myErrorMsg += "\nThis is my error Message I would like on the next line"
self._errors["mytag"] = myErrorMsg
However it seems to ignore all line breaks I tried both html <br /> and \n but nothing works everything gets put on one line and I loose capitalization.
When you tried inserting a <br /> tag, did it literally show up in the output as “<br />”? If so, then Django is automatically escaping the error message.
See https://docs.djangoproject.com/en/dev/topics/templates/#automatic-html-escaping for more details.