writeppm: fix tab/spaces

This commit is contained in:
cinap_lenrek 2013-05-12 19:12:21 +02:00
parent 4c4fbdf78c
commit b78e9525cf

View file

@ -79,7 +79,7 @@ writedata(Biobuf *fd, Image *image, Memimage *memimage)
}
}
break;
case GREY8:
case GREY8:
for(i=0; i<ndata; i++){
col += Bprint(fd, "%d", data[i]);
if(col >= MAXLINE-(4+1)){
@ -118,7 +118,7 @@ writeppm0(Biobuf *fd, Image *image, Memimage *memimage, Rectangle r, int chan, c
break;
case GREY2:
case GREY4:
case GREY8:
case GREY8:
Bprint(fd, "P2\n");
break;
case RGB24:
@ -143,7 +143,7 @@ writeppm0(Biobuf *fd, Image *image, Memimage *memimage, Rectangle r, int chan, c
case GREY4:
Bprint(fd, "%d\n", 15);
break;
case GREY8:
case GREY8:
case RGB24:
Bprint(fd, "%d\n", 255);
break;