• 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
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...