Validate trailers/build trailers block

Timeline

Amolith opened

Each trailer's format must be validated, then added to a group at the bottom according to the following git documentation:

Trailers are newline-delimited Key: value pairs in a group of one or more lines that is all trailers and preceded by one or more empty (or whitespace-only) lines. The group must either be at the end of the input or be the last non-whitespace lines before a line that starts with --- (followed by a space or the end of the line).

There can be no whitespace before or inside the , but any number of regular space and tab characters are allowed between the and the separator. There can be whitespaces before, inside or after the . The may be split over multiple lines with each subsequent line starting with at least one whitespace, like the "folding" in RFC 822. Example:

key: This is a very long value, with spaces and
  newlines in it.
Another-key: This is an even longer value with
  spaces and newlines in it that run onto multiple
  lines.

Amolith closed the bug