Skip to content

Commit

Permalink
fix: deb multilines should have 1 space prefix (#438)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Feb 3, 2022
1 parent 6234af8 commit 72a4c47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deb/deb.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ func writeControl(w io.Writer, data controlData) error {
return strings.Trim(strings.Join(strs, ", "), " ")
},
"multiline": func(strs string) string {
ret := strings.ReplaceAll(strs, "\n", "\n ")
ret := strings.ReplaceAll(strs, "\n", "\n ")
return strings.Trim(ret, " \n")
},
})
Expand Down
4 changes: 2 additions & 2 deletions deb/testdata/multiline.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Priority: extra
Architecture: riscv64
Installed-Size: 0
Description: This field is a
multiline field
that should work.
multiline field
that should work.

0 comments on commit 72a4c47

Please sign in to comment.