Commit 6e395cfe authored by Rob Pike's avatar Rob Pike

slightly better code for the frog fix

R=ken
OCL=24025
CL=24025
parent 2538cf74
...@@ -305,11 +305,11 @@ isfrog(int c) { ...@@ -305,11 +305,11 @@ isfrog(int c) {
if(c < 0) if(c < 0)
return 1; return 1;
if(c < ' ') { if(c < ' ') {
if(c == ' ' || c == '\n' || c== '\r' || c == '\t') // good white space if(c == '\n' || c== '\r' || c == '\t') // good white space
return 0; return 0;
return 1; return 1;
} }
if(0x80 <= c && c <=0xa0) // unicode block including unbreakable space. if(0x80 <= c && c <= 0xa0) // unicode block including unbreakable space.
return 1; return 1;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment