doesn't understand how to deal with trailing whitespace... So I had to whip up this patch to bludgeon it into submission.