Skip to content

Commit

Permalink
Remove trailing space in GPSValid insertion tag
Browse files Browse the repository at this point in the history
Winlink Express does include this, and neither should we.
  • Loading branch information
martinhpedersen committed Feb 25, 2024
1 parent 4c18e2c commit 8402627
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/forms/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ func insertionTagReplacer(m *Manager, tagStart, tagEnd string) func(string) stri
"UDay": formatDay(now, time.UTC),

"GPS": positionFmt(degreeMinute, nowPos),
"GPSValid": validPos,
"GPS_DECIMAL": positionFmt(decimal, nowPos),
"GPS_SIGNED_DECIMAL": positionFmt(signedDecimal, nowPos),
"GridSquare": positionFmt(gridSquare, nowPos),
Expand All @@ -311,9 +312,6 @@ func insertionTagReplacer(m *Manager, tagStart, tagEnd string) func(string) stri
// By reading the embedded javascript, they appear to be signed decimal.
"GPSLatitude": fmt.Sprintf("%.4f", nowPos.Lat),
"GPSLongitude": fmt.Sprintf("%.4f", nowPos.Lon),
// TODO: Why a trailing space here?
// Some forms also adds a whitespace in their <Var > declaration, so we end up with two trailing spaces..
"GPSValid": fmt.Sprintf("%s ", validPos),

// TODO (other insertion tags found in Standard Forms):
// SeqNum
Expand Down

0 comments on commit 8402627

Please sign in to comment.