[Bug 935192] ANSI cleanup can be improved in log viewer