about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-10-01 20:55:20 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-10-01 20:55:20 +0000
commita2f383abd59a6ab6170ff87aed73907e337976e1 (patch)
tree0ff68bcd171205baf521bec150eaa0512ae747e7
parent36337c4f4249c002177cdc9ca3bc62aadf74168e (diff)
downloadnetpbm-mirror-a2f383abd59a6ab6170ff87aed73907e337976e1.tar.gz
netpbm-mirror-a2f383abd59a6ab6170ff87aed73907e337976e1.tar.xz
netpbm-mirror-a2f383abd59a6ab6170ff87aed73907e337976e1.zip
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4712 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/ppm/ppmtopj.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/converter/ppm/ppmtopj.c b/converter/ppm/ppmtopj.c
index d116773f..8b39ce37 100644
--- a/converter/ppm/ppmtopj.c
+++ b/converter/ppm/ppmtopj.c
@@ -62,12 +62,14 @@ static int compress_row ARGS((unsigned char *op, unsigned char *oe, unsigned cha
 #define C_MOVE_X			"\033*p+%dX"
 #define C_MOVE_Y			"\033*p+%dY"
 
-static const char * const rmode[] = { 
-    "none", "snap", "bw", "dither", "diffuse", 
-    "monodither", "monodiffuse", "clusterdither", 
-    "monoclusterdither", NULL 
+static const char * const rmode[] = {
+    "none", "snap", "bw", "dither", "diffuse",
+    "monodither", "monodiffuse", "clusterdither",
+    "monoclusterdither", NULL
 };
 
+
+
 /*
  * Run-length encoding for the PaintJet. We have pairs of <instances>
  * <value>, where instances goes from 0 (meaning one instance) to 255
@@ -78,7 +80,7 @@ compress_row(op, oe, cp)
 unsigned char *op, *oe, *cp;
 {
     unsigned char *ce = cp;
-    while ( op < oe ) {	
+    while ( op < oe ) {
 	unsigned char px = *op++;
 	unsigned char *pr = op;
 	while ( op < oe && *op == px && op - pr < 255) op++;
@@ -88,6 +90,8 @@ unsigned char *op, *oe, *cp;
     return ce - cp;
 }
 
+
+
 int main(argc, argv)
 int argc;
 char *argv[];
@@ -254,3 +258,6 @@ char *argv[];
 	(void) printf(C_END_RASTER, C_END_RASTER_UNUSED);
 	exit(0);
 }
+
+
+