From 8e91cb2b7df2ab3ee6f2be97fbde1433e2c6ac0c Mon Sep 17 00:00:00 2001 From: Ken Miller Date: Sun, 7 Sep 2014 00:48:48 -0500 Subject: [PATCH] treat vertical tab and form feed characters as whitespace --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index 862f961..287eca9 100644 --- a/stb_image.h +++ b/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)