- Edited
That setting wasn't defined in the config but setting it did nothing as I suspected; I spent the last hour or so actually debugging the osTicket script to find out exactly where the problem is in the script and for me I tracked it down to the include/htmLawed.php file and the hl_tidy function around line 644.Looking at the function right away it coverts your body's message characters "<", ">", "\n", "\r", "\t", " " into "\x01", "\x02", "\x03", "\x04", "\x05", "\x07" then before it returns the message it looks like it converts the \x## back to there proper characters/returns after its done processing the message but somewhere along the process the converting back and forth is lost and the line breaks are removed.My simple fix for the problem is at the top of the function calling $t = nl2br($t); and now my line breaks work and the function/script should still work fine (so far) for me at least.