Remove extra newlines in log records