Line endings patch