Add newline, fix #71

This commit is contained in:
Paul van Brouwershaven
2025-05-12 09:28:04 +02:00
committed by Paul van Brouwershaven
parent 6cbaf97a70
commit e026bf1577

View File

@@ -43,7 +43,7 @@ func (context *SignContext) writeTrailer() error {
lines[i] = " " + strings.TrimSpace(line)
}
}
trailer_string = strings.Join(lines, "\n")
trailer_string = strings.Join(lines, "\n") + "\n"
// Write the new trailer.
if _, err := context.OutputBuffer.Write([]byte(trailer_string)); err != nil {
@@ -54,7 +54,6 @@ func (context *SignContext) writeTrailer() error {
return err
}
}
// Write the new xref start position.
if _, err := context.OutputBuffer.Write([]byte(strconv.FormatInt(context.NewXrefStart, 10) + "\n")); err != nil {
return err