Bugfix: parse \n in the log window. Closes #3151.