Skip to content

Commit a5e0cef

Browse files
authored
Merge pull request #1 from w9cf/master
Replaced newlines with separator character so that tciadapter obeys the |f etc. rigctld protocol.
2 parents 35af91f + 8295394 commit a5e0cef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/protocol/protocol.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ func (r *Response) Format() string {
7373
func (r *Response) ExtendedFormat(separator string) string {
7474
buffer := bytes.NewBufferString("")
7575

76-
fmt.Fprintf(buffer, "%s:\n", r.Command)
76+
fmt.Fprintf(buffer, "%s:%s", r.Command, separator)
7777
for i, value := range r.Data {
7878
if r.Keys[i] != "" {
79-
fmt.Fprintf(buffer, "%s: %s\n", r.Keys[i], value)
79+
fmt.Fprintf(buffer, "%s: %s%s", r.Keys[i], value, separator)
8080
} else {
81-
fmt.Fprintln(buffer, value)
81+
fmt.Fprintf(buffer, "%s%s", value, separator)
8282
}
8383
}
8484
fmt.Fprintf(buffer, "RPRT %s", r.Result)

0 commit comments

Comments
 (0)