custom end page formatting errors - where are the spaces coming from

custom end page formatting errors - where are the spaces coming from

the edit control (looks like from 1980) causes many many extra spaces.
really not a good use of our time working around poor controls like this one.