dig -v
DiG 9.9.4-RedHat-9.9.4-18.el7_1.1
That's the version of dig. When I use it to query DS information, it inserts a space into the digest result for type 2 digests:
dig DS domblogger.net. +short
2085 7 2 E3E1BEF53CF187DFA6B0AE1C5CE93AF9D597A64C97317A9A1E45C6A6 03E10D32
2085 7 1 3F3FBE538DA52E982299D7E7BA13A35400536C11
You can see the space before the 03E10D32
for the type 2 digest, probably because of its length.
I've looked at the man page and googled around, I can't seem to find what option to pass to dig to get it to not insert that space. It also does it with a few other record types as well related to DNSSEC.
I can fix it post query in my script but it sure would be nice if I could just pass it an option where I don't have to. Any help would be appreciated.