Perform output colorization and handle double lines