Renamed 'anyNewline' to 'endOfLine' as suggested in #3 by @aslatter.