That was it. Ask the internet, and ye shall find. Remove spaces and then pad to then next multiple of 8. I realize that keepass is open source, but perhaps one adds a string edit routine to .... remove spaces and then pad to the next multiple of 8? /I know, you suggested it, you do it.
Finally ran across a TOTP that doesn't seem to work with TimeOtp-Secret-Base32. Amazon. Bitwarden and Authy both generate the correct value, keepass does not. Anyone succeed in generating an Amazon TOTP using keepass?