Make first line of multiline field empty for all fields except for Description. #261

This commit is contained in:
Andrey Smirnov
2015-06-10 13:44:03 +03:00
parent 38dfe3435a
commit 7d4a70ba25
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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)
}