Rewrite of the #204 fix to support multiline metadata
IsMetadataArgument(): add some more exit conditions
Merge pull request #389 from Gama11/MetadataShorteningMultiline

Rewrite of the #204 fix to support multiline metadata