"CR implies LF" patch, based on one from Paul Coldrey.