Fix newline in output field

Fix newline code in output field.

add `</span>` for `[39m` and remove existing line and add result line for `[0G`.