trimming trailing blanks is too hard; the last revision handles most of the
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 30 Aug 1989 13:18:22 +0000 (05:18 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 30 Aug 1989 13:18:22 +0000 (05:18 -0800)
commit6d23aef6deab1b5631f8d130b58700b75a8ac0fa
tree8e312a26137eb53769d7031be7851e827fcb57a2
parent7fca17f6996d04d919fe01b40bb373e78e00049a
trimming trailing blanks is too hard; the last revision handles most of the
cases -- the one I quit on is where you have:
"%06.6_ao "  12/1 "%3o "
"\t\t" "%_p"
"\n"
You'd have to read-ahead and figure out what's going to be printed from
future format strings to know if the current line should be blank padded.

SCCS-vsn: usr.bin/hexdump/bpad.c 5.2
SCCS-vsn: usr.bin/hexdump/display.c 5.2
SCCS-vsn: usr.bin/hexdump/hexdump.1 5.2
SCCS-vsn: usr.bin/hexdump/hexdump.h 5.2
usr/src/usr.bin/hexdump/bpad.c
usr/src/usr.bin/hexdump/display.c
usr/src/usr.bin/hexdump/hexdump.1
usr/src/usr.bin/hexdump/hexdump.h