From cf2d2bb02ea35af374ae9562237c03c5e1a14167 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 30 Dec 2013 17:58:37 +0000 Subject: whitespace git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2088 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pnmmargin | 54 ++++++++++++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 28 deletions(-) (limited to 'editor/pnmmargin') 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 ] [pnmfile]" 1>&2 - exit 1 - fi - color="$1" - shift - ;; - -* ) - echo "usage: $0 [-white|-black|-color ] [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 ] [pnmfile]" 1>&2 + exit 1 + fi + color="$1" + shift + ;; + -* ) + echo "usage: $0 [-white|-black|-color ] [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 - - -- cgit 1.4.1