Piping a clearsinged document through gpg should output the body of the message.
Currently, it adds an extra newline to the end of the output, the effect of
which is that the output does not verify with the signature, if detached.
In the attached archive, there are three files:
cleasigned.asc - a cleasigned test document
signature.asc - the signature detached from clearsigned.asc
body.asc - the plaintext body of the signed message
The following would work:
gpg --verify clearsigned.asc
gpg --verify signature.asc body.asc
However
gpg < clearsigned.asc > body.txt
would result in a body.txt that is NOT identical to body.asc, the difference
being an extra newline.