fix: disabling auto align should always return one space

This commit is contained in:
Mustafa Gezen 2022-03-28 19:55:40 +02:00
parent 2fafebaee8
commit 8f00773aac
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.27.1 // protoc-gen-go v1.27.1
// protoc v3.17.3 // protoc v3.19.3
// source: response.proto // source: response.proto
package srpmprocpb package srpmprocpb

View File

@ -134,7 +134,7 @@ func sourcePatchOperationAfterLoop(req *sourcePatchOperationAfterLoopRequest) (b
func calculateSpaces(longestField int, fieldLength int, disableAutoAlign bool) string { func calculateSpaces(longestField int, fieldLength int, disableAutoAlign bool) string {
if disableAutoAlign { if disableAutoAlign {
return "" return " "
} }
return strings.Repeat(" ", longestField+8-fieldLength) return strings.Repeat(" ", longestField+8-fieldLength)
} }