std/netpbm: allow spaces and tabs as whitespace

This commit is contained in:
Nigel Tao committed 2025-02-28 21:37:22 +11:00
1 parent 64daf2653e
commit 6e91caf241
3 files changed
+47 -22

No files matched your search

+6
View File
@@ -158,8 +158,14 @@ wuffs_base__magic_number_guess_fourcc(wuffs_base__slice_u8 prefix_data,
{+0x4C5A4950, "\x04\x4C\x5A\x49\x50\x01"}, // LZIP
{+0x54494646, "\x03\x4D\x4D\x00\x2A"}, // TIFF (big-endian)
{+0x45544332, "\x03\x50\x4B\x4D\x20"}, // ETC2 (*.pkm)
{+0x4E50424D, "\x02\x50\x35\x09"}, // NPBM (P5; *.pgm)
{+0x4E50424D, "\x02\x50\x35\x0A"}, // NPBM (P5; *.pgm)
{+0x4E50424D, "\x02\x50\x35\x0D"}, // NPBM (P5; *.pgm)
{+0x4E50424D, "\x02\x50\x35\x20"}, // NPBM (P5; *.pgm)
{+0x4E50424D, "\x02\x50\x36\x09"}, // NPBM (P6; *.ppm)
{+0x4E50424D, "\x02\x50\x36\x0A"}, // NPBM (P6; *.ppm)
{+0x4E50424D, "\x02\x50\x36\x0D"}, // NPBM (P6; *.ppm)
{+0x4E50424D, "\x02\x50\x36\x20"}, // NPBM (P6; *.ppm)
{-0x52494646, "\x03\x52\x49\x46\x46"}, // RIFF
{+0x4C5A4D41, "\x04\x5D\x00\x10\x00\x00"}, // LZMA
{+0x4C5A4D41, "\x02\x5D\x00\x00"}, // LZMA