mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-25 13:37:51 +00:00
Make first line of multiline field empty for all fields except for Description. #261
This commit is contained in:
@@ -102,6 +102,10 @@ func writeField(w *bufio.Writer, field, value string) (err error) {
|
||||
if !strings.HasSuffix(value, "\n") {
|
||||
value = value + "\n"
|
||||
}
|
||||
|
||||
if field != "Description" {
|
||||
value = "\n" + value
|
||||
}
|
||||
_, err = w.WriteString(field + ":" + value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user