about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-12-30 17:58:37 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-12-30 17:58:37 +0000
commitcf2d2bb02ea35af374ae9562237c03c5e1a14167 (patch)
tree63bb7cdaeeb7fc208b1781257755765664edcd99 /editor
parentc29448881ebc53c0ba4a7def5808eb6dad35cb39 (diff)
downloadnetpbm-mirror-cf2d2bb02ea35af374ae9562237c03c5e1a14167.tar.gz
netpbm-mirror-cf2d2bb02ea35af374ae9562237c03c5e1a14167.tar.xz
netpbm-mirror-cf2d2bb02ea35af374ae9562237c03c5e1a14167.zip
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2088 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rwxr-xr-xeditor/pnmmargin54
1 files changed, 26 insertions, 28 deletions
diff --git a/editor/pnmmargin b/editor/pnmmargin
index b31deefd..0f57d1d4 100755
--- a/editor/pnmmargin
+++ b/editor/pnmmargin
@@ -31,30 +31,30 @@ while true ; do
         plainopt="-plain"
         shift
         ;;
-	-w|-wh|-whi|-whit|-white )
-	color="-white"
-	shift
-	;;
-	-b|-bl|-bla|-blac|-black )
-	color="-black"
-	shift
-	;;
-	-c|-co|-col|-colo|-color )
-	shift
-	if [ ! ${1-""} ] ; then
-       	    echo "usage: $0 [-white|-black|-color <colorspec>] <size> [pnmfile]" 1>&2
-	    exit 1
-	fi
-	color="$1"
-	shift
-	;;
-	-* )
-	echo "usage: $0 [-white|-black|-color <colorspec>] <size> [pnmfile]" 1>&2
-	exit 1
-	;;
-	* )
-	break
-	;;
+        -w|-wh|-whi|-whit|-white )
+        color="-white"
+        shift
+        ;;
+        -b|-bl|-bla|-blac|-black )
+        color="-black"
+        shift
+        ;;
+        -c|-co|-col|-colo|-color )
+        shift
+        if [ ! ${1-""} ] ; then
+            echo "usage: $0 [-white|-black|-color <colorspec>] <size> [pnmfile]" 1>&2
+            exit 1
+        fi
+        color="$1"
+        shift
+        ;;
+        -* )
+        echo "usage: $0 [-white|-black|-color <colorspec>] <size> [pnmfile]" 1>&2
+        exit 1
+        ;;
+        * )
+        break
+        ;;
     esac
 done
 
@@ -82,7 +82,7 @@ if [ $size -eq 0 ] ; then
 else
     # If -white or -black, write output with pnmpad and exit.
     # Otherwise construct spacer files.
-    
+
     case "$color" in
         -gofigure )
         pnmcut 0 0 1 1 $tmp1 | pnmtile $size 1 > $tmp2
@@ -97,12 +97,10 @@ else
         ;;
     esac
     pamflip -rotate90 $tmp2 > $tmp3
-    
+
     # Cat things together.
     pnmcat -lr $tmp2 $tmp1 $tmp2 > $tmp4
     pnmcat -tb $plainopt $tmp3 $tmp4 $tmp3
 fi
 
 
-
-