delete last br before code closing tag (code highlighter) 

toHTML() method adds a br to every line (line 298)
this strips the br from the last line