Răsfoiți Sursa

treat vertical tab and form feed characters as whitespace

Ken Miller 11 ani în urmă
părinte
comite
8e91cb2b7d
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      stb_image.h

+ 1 - 1
stb_image.h

@@ -4550,7 +4550,7 @@ static stbi_uc *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int
 
 static int      stbi__pnm_isspace(char c)
 {
-   return c == ' ' || c == '\t' || c == '\n' || c == '\r';
+   return c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r';
 }
 
 static void     stbi__pnm_skipspace(stbi__context *s, char *c)