Give more space to long calls on screen display

pull/64/head
Jean-Marc MEESSEN 4 years ago committed by GitHub
parent 7c5c5b5eb3
commit 4732960e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -78,7 +78,7 @@ func SprintHeaderValues(logLine LogLine) string {
}
// Date, Time, band, mode, call, report sent, report rcvd, Notes
var logLineFormat = "%-10s %-4s %-4s %-4s %-10s %-4s %-4s %s\n"
var logLineFormat = "%-10s %-4s %-4s %-4s %-12s %-4s %-4s %s\n"
// SprintColumnTitles displays the column titles for a log line
func SprintColumnTitles() string {

@ -59,8 +59,8 @@ func ExampleSprintColumnTitles() {
out := SprintColumnTitles()
fmt.Print(out)
//Output:
//Date Time Band Mode Call Sent Rcvd Notes
//---- ---- ---- ---- ---- ---- ---- ----
//Date Time Band Mode Call Sent Rcvd Notes
//---- ---- ---- ---- ---- ---- ---- ----
}
func ExampleSprintLogRecord() {
@ -158,7 +158,7 @@ func TestSprintLogInColumn(t *testing.T) {
SOTA: "sota",
WWFF: "wwff"},
},
"date time band mode call rstSent rstRcvd QRG: frequency [comment] [qslMessage] omName gridLoc wwff sota \n",
"date time band mode call rstSent rstRcvd QRG: frequency [comment] [qslMessage] omName gridLoc wwff sota \n",
},
{
"Minimal",
@ -180,7 +180,7 @@ func TestSprintLogInColumn(t *testing.T) {
RSTsent: "rstSent",
RSTrcvd: "rstRcvd"},
},
"date time band mode call rstSent rstRcvd \n",
"date time band mode call rstSent rstRcvd \n",
},
}
for _, tt := range tests {

Loading…
Cancel
Save