• Rob Pike's avatar
    fmt: treat \r\n as \n in Scan · 221af5c1
    Rob Pike authored
    When scanning input and "white space" is permitted, a carriage return
    followed immediately by a newline (\r\n) is treated exactly the same
    as a plain newline (\n). I hope this makes it work better on Windows.
    
    We do it everywhere, not just on Windows, since why not?
    
    Fixes #5391.
    
    R=golang-dev, dsymonds
    CC=golang-dev
    https://golang.org/cl/12142043
    221af5c1
scan_test.go 26.2 KB