clean up line style handling.